199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for emilio

hi i have an ajax calendar extender control that is set to a textbox. how can i get the current selected date value from the calendar ?

Member Avatar for emilio
0
95
Member Avatar for emilio

is it possible to catch an exception in a try-catch block and show the message in the page's validation summary ?

Member Avatar for emilio
0
128
Member Avatar for rohnni

Hii I want to design a contact form with multiple fields like title, firstname, lastname,country,email,address,pincode on one page at the bottom with next button and on other page want to add some more fields with checkbox and radio buttons .... please tell me how to design it and its coding …

Member Avatar for rohnni
0
841
Member Avatar for replic

Hi everyone, i wrote this small app and it works fine but it erases everything up to the offset and everything after it. Anyone knows how to avoid that? [CODE=C++]#include <iostream> #include <fstream> int main() { int hex = 0x75; std::ofstream f("sample.exe", std::ios::binary); f.seekp(1169, std::ios::beg); f.write(reinterpret_cast<const char *>(&hex), 2); f.close(); …

Member Avatar for replic
0
238
Member Avatar for bondgirl21

i USED THIS CODE TO ASSIGN THE BRAND DBS TO A VALUE OF $200000 Help with Code Tags [quote] Private Sub xModelComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xModelComboBox.SelectedIndexChanged If xModelComboBox.Text = "DBS" Then xTotalPriceLabel.Text = "$200,000" [/quote] AND THIS CODE TO CALCULATE THE FOLLOWING iNITIAL PRICE= is …

Member Avatar for Ramy Mahrous
0
129
Member Avatar for Bart6114

Hello, Is there a way to read an imagefile into a binary string? I know I can use [code]open(FILE,"rb")[/code] but this produces something unreadable that looks a bit like hexdata (I'm a newbie here :-). What I am trying to accomplish is to convert it to a string of ones …

Member Avatar for Bart6114
0
14K
Member Avatar for integralJill

Hello, For the program described below, I obtain the correct prime numbers in the file, but when I try to output this data sorted to standard input, I get some garbage when I try it on my school network. However, when I run the same code using vmware's lamp with …

Member Avatar for integralJill
0
706
Member Avatar for vmars

Greetings; I would like to install Python, wxPython, XRCed, BoaConstructor : I installed Python 3.0.1 : but which version of the others go together with Python 3.0.1? Maybe I should backup with Python, but I don't know. Please Help. Thanks! ...Vern

Member Avatar for vegaseat
0
225
Member Avatar for lovely_aly

Hi all, I'm a beginning CS student and am working on an assignment today and am hoping someone wouldn't mind checking my work. I've typing out each assignment problem followed by the code I wrote. Also, please note I'm not required to write complete methods just the code for the …

Member Avatar for javaAddict
0
152
Member Avatar for zacknie

im a noobs in c++.. and my problem is i cant calculate the total,.. here is my program.... i use MSVC++ 6.0.. i hope you can solve my problem..thank you!!. [CODE]#include<iostream.h> void line(); void main() { cout<<"\t\tlist of foods:\n\n1. Yum..............................P49.00\n2. Yum w/ Cheese....................P59.00\n3. Yum with Mushroom and Cheese.....P66.00\n4. Amazing Aloha....................P88.00\n5. …

Member Avatar for zacknie
0
141
Member Avatar for txman

I'm teaching myself c++, and after searching around on the forums, I couldn't find an answer that helped me with this specific problem. The idea is to collect the first name, last name, and SSN of a customer, and create a file using the first three letters of the first …

Member Avatar for vmanes
0
95
Member Avatar for Title27GT

[code=php]<style> body { background-color: #eeeeee; } border:0 valign="top" </style> <?php require_once("VatsimPHPgenerator.php"); $VatsimPHP=new VatsimPHP; $pilotlist=$VatsimPHP->pilots(); $flag=0; $found = false; foreach ($p in $pilotlist) { $m = substr($p[11],0,4)."|".substr($p[13],0,4); if (preg_match("/TTCP|TGPY|TBPB/", $m)) { printf("<tr><th>%s</th><td>%s</td><td>-%s</td></tr>", $p[0], $p[11], $p[13]); $found = true; } } if (!$found) print("<tr><td>There are currently no ongoing flights within the Piarco …

Member Avatar for somedude3488
0
79
Member Avatar for chadactive

I plan to start learning shell scripting but I want to start with the one I can use. Is there anyway to find out which type and version of shell program XP uses? Is it DOS, PowerShell?

Member Avatar for chadactive
0
194
Member Avatar for progurammaar

Hello, I made a page that allows users to login, if id and password are correct than it sets up a cookie and says 'Hi'. Now i can access any page on the site after logging in(Which was restricted if you arent logged) Now this works fine in firefox and …

Member Avatar for progurammaar
0
99
Member Avatar for stepipai

hellow everyone, can u please help me.... just a code fragment in C... the program is designed to add fraction... the user should input like this: enter the fraction to be added: 1/2 1/4 the answer is: 3/4... tnx... :)

Member Avatar for csurfer
0
95
Member Avatar for redhotspike

[code] bool operator>=(const ElementType &e1, const KeyType &key); [/code] I am trying to overload >= which compares the a string in struct e1 with a string. When I compile I get an error that: 'bool operator>=(const ElementType &e1, const KeyType &key);' must take exactly one argument ...I understand that the …

Member Avatar for redhotspike
0
73
Member Avatar for RexxX

I have an assignment I'm working on in C but I didn't want to ask for any code specifically. I just wanted to ask about the methods to use. The program reads a text file where it tells you the number of values to hash. The hash function is completely …

Member Avatar for Narue
0
151
Member Avatar for guest7

Hi, I am getting a segmentation fault at the following line in the code. I am reading a file using ifstream. The file contains some initial junk data followed by useful data. I wish to read and discard the junk data from the file, before I read the useful data. …

Member Avatar for Ancient Dragon
0
113
Member Avatar for firoz.raj

Can anyone tell me.How should i update. i am trying to to a new record if the Supplier_id Doesn't exist, Then i need to do a Select Statement.if that Supplier_id is in the database already,then i want to update method.i havewritten a code .Here is the code what i have …

Member Avatar for cguan_77
0
167
Member Avatar for ryan311

how can i get the first name, the middle name and the last name in my textbox? what i mean is i have 1 textbox to input his full name the format is this sample: Nash, Steve B. then i have 3 label, the first label is Your first name …

Member Avatar for cguan_77
0
103
Member Avatar for mo_Shaf786

hi, ive got a text file which has multiple lines, how can i display all the lines? [CODE] BEGIN assignfile(filea, user); reset(filea); while not eof(filea) do BEGIN readln(filea,textstring); writeln(textstring); end; closefile(filea); readln; END[/CODE] Thanks

Member Avatar for sknake
0
149
Member Avatar for okarvian

I've encrypted a file from my local machine, but now I'm looking to make it [B]exe [/B]file. User just [B]double click [/B]on it and a form will be displayed to ask for the [B]password [/B]and [B]decrypt [/B]the file. I don't know how to embed a form with encrypted file. Can …

Member Avatar for JerryShaw
0
120
Member Avatar for deerowbear

I am getting an error saying, expected unqualified-id before "template" I can't figure out why I am getting this error. Any ideas? Thanks daiel code below: [CODE]#include <stdio.h> #include <stdlib.h> #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <cctype> #include <sstream> //#include "comparable.h" using namespace std; // enum cmp_t …

Member Avatar for siddhant3s
0
128
Member Avatar for 00Vic

Hello all. I am a CS major and I am learning recursion right now and have a lab assignment to write a program that uses recursion to evaluate post fix expressions. I have made an attempt at this but I am stuck and need some help. Here is what I …

Member Avatar for 00Vic
0
2K
Member Avatar for wizzywas

Hi All, I need a bit of help with a java Dots and Lines game i am developing, Similar to the Dots and Box game. I have laid out the Dots with the two colours blue and yellow which change accordingly. I now need to draw a horizontal or a …

Member Avatar for quuba
0
2K
Member Avatar for Innercoder76

Hey everyone, I've got a problem with my program and don't really know how to fix it. The program is a simulation Game of Life and has these rules: 1. A new cell is born on an empty square if is surrounded by exactly three neighboring cells 2. A cell …

Member Avatar for nucleon
0
94
Member Avatar for rainny

Hi, does anyone know how to read the specified line from a text file? And by create a program, we can load what is write inside the text file and read line by line to show at the program. Does anyone have idea on it? Thanks and regards Rainny

Member Avatar for Taniotoshi
0
125
Member Avatar for sb3700

Hey I am trying to use Python to control a motor over RS232 (serial ports). It is connected to COM3, and the connection settings are correct (baud=9600, etc). I am using pySerial in Python 2.5. My code is: [code=python] import serial, time # the serial port connections - customise as …

Member Avatar for sb3700
0
3K
Member Avatar for trebligwong

i have to do this, and my lecturer is such an ass asking us to learn it by ourselves. i have tried a code but it not working the way it is suppose to be. (Airline Reservation System) A small airline has just purchased a computer for its new automated …

Member Avatar for seanhunt
0
316
Member Avatar for JustLearning

Ok here is the code I am trying to compile remotly on a linux machine I am getting quite a few compile errors when I try to compile this Here is just a sample of the errors I am getting. [code]-bash-3.2$ gcc -o lemastsGCD lemastsGCD.cpp /tmp/cca8g62Q.o: In function `__static_initialization_and_destruction_0(int, int)': …

Member Avatar for JustLearning
0
177
Member Avatar for avadhut_ekal

I want to connect the access database to the c++ project. What are the requirements of this? How to connect that? Give the example.

Member Avatar for hasbro
0
146
Member Avatar for jaanu.cheruvu

hi... plz solve this .. actually binary search takes two tests inside the side the loop . Now i want with one comparison inside the loop. [U]Question is[/U]: [B]Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside.) Write a …

Member Avatar for death_oclock
0
101
Member Avatar for emj83

I am trying (unsuccessfully!) to code the game of life for an assignment, I am very new to C programming and am finding it very difficult. I am at the part where the program needs to count how many cells are live/dead and I thought it would be a good …

Member Avatar for death_oclock
0
96
Member Avatar for gabec94

Hi, I am new to java and want to play around, I want to make a program that takes in input of lets say 5 numbers, and displays them separated by a space. For example I would enter 12345 and 1 2 3 4 5 would be returned. this is …

Member Avatar for Taniotoshi
0
564
Member Avatar for mimis

I have to make a tree that will have unlimited leafs in each root. I don't have much experience in binary trees and i am confused on how to make this tree. Can you help me please?

Member Avatar for GDICommander
0
114
Member Avatar for jaanu.cheruvu

can any1 solve this .....Given a sorted list of infinite size in which first n elements (n is unknown) are finite integers and rest are infinity, write an efficient function that finds a given number in O(ln n ) time complexity.

Member Avatar for jaanu.cheruvu
0
357
Member Avatar for ox99racer

#include <iostream> #include <fstream> using namespace std; void namefile(ifstream & infile); void openfile(ifstream & infile); void displayScores(int scores); void getData(ifstream & infile, int scores[], int & size); int main() { } void nameFile(ifstream & infile) { cout << "enter the file name"; cin >> infile; } void openfile(ifstream & infile) …

Member Avatar for tux4life
0
110
Member Avatar for Brandon515

this is my first program ever, my email address is in the program. tell me if anything is too complicated or there are bugs and if you can tell me how to fix them. this program is me playing with fstream and it writes to a txt file or creates …

Member Avatar for siddhant3s
0
100
Member Avatar for MJV

How can I stop this error, here is my code and there error occurs where i have decimal.TryParse(.... class EstCalc { static void Variables (string[] args) { decimal bl; //blank length decimal bw; //blank width decimal bp; //blank perifery decimal pd; //part depth decimal dq; //die quantity decimal.TryParse(quantityTB.Text, out dq); …

Member Avatar for Rashakil Fol
0
113
Member Avatar for bmcutler011

I was wondering anyone knew how to figure these problems out. To, me it is hard and I really need this done by Sunday morning. If possible please reply, thanks! 1. Construct a recursive definition , where all variables are natural numbers. f(n, k) = k + (k + 1) …

Member Avatar for Rashakil Fol
0
328
Member Avatar for Lizapotter

Hello everybody I am in search of free PHP script to add calendar in my forum, can anybody help me in this regard, thanks in advance

Member Avatar for jakx12
0
121
Member Avatar for starzstar

Hi, I have the following structure of my project [code] Copyproject(main folder) | |_____src(folder) | | | |__Nertworkpackage | | | | | |__Storepackage | | | | |__FtpPackage |__module1.py | |__module2.py |____ tests |__ module3.py [/code] Module1 takes some commandline parameters that will do some operation Like If I …

Member Avatar for starzstar
0
145
Member Avatar for nick2price

I am not too sure about c++. I have this program so i can perform a test on it against java. It looks like [CODE]#include "stdafx.h" #include <iostream> #include <math.h> #include <sys/time.h> using namespace std; double generate(int max) { struct timeval start; struct timezone tz; gettimeofday(&start, &tz); bool *sieve = …

Member Avatar for tux4life
0
260
Member Avatar for rasingh24

Hi, i have a small project in which on selecting a node in treeview displays attributes in listbox.In treeView1_AfterSelect, the text parsing code depends on the textual representation for a node in the tree view, which can be changed at any time and break the entire logic of list display. …

0
75
Member Avatar for JwB

hi there, im currently working on my own cd ripping program using c# and wpf and was wondering what the best solution for this problem is? my xaml code is as follows: [code=xml] <ListView x:Name="trackList" VerticalAlignment="Top" Margin="0,100,0,0" Height="200" SelectionChanged="trackSelect" FontFamily="Comic Sans MS"> <ListView.ItemTemplate> <DataTemplate> <StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <CheckBox Name="checkbox" …

Member Avatar for JwB
0
144
Member Avatar for yaee

Create a class named Order. This class has the following attributes/ data members i) OrderID ii) Items iii) PricesOfItems a) Create the object of this class using parameterized constructor in order to initialize OrderID and Items data members. Default values of both the data members must be equal to 1. …

Member Avatar for orwell84
0
115
Member Avatar for themightycrag

Here's the scenario. I have a web server running with IIS 6 and website running written in ASP. The site and code has been working perfectly up until about 2 days ago when for no reason whatsoever the ASP has decided to partly work. and by this i mean as …

Member Avatar for agrothe
0
191
Member Avatar for Potato.Head

Hi to all I have the following question, I was wandering if I can use the Web Browser Control(ActiveX) in a C# DLL. I create a win form from the article: [URL="http://www.c-sharpcorner.com/UploadFile/mahesh/WebBrowserInCSMDB12022005001524AM/WebBrowserInCSMDB.aspx"]http://www.c-sharpcorner.com/UploadFile/mahesh/WebBrowserInCSMDB12022005001524AM/WebBrowserInCSMDB.aspx[/URL] And every thing is working OK, I want to write a DLL that includes a Web Browser object …

Member Avatar for LizR
0
125
Member Avatar for dollmar

hello what is the exact code in saving visual basic using ms excel as database? i want to save my data in the form of visual basic into excel as database..what is the exact code in my cmdSave command button? thanks in advance...

Member Avatar for agrothe
0
278
Member Avatar for vijay.wadikar

Hi All, I want to use the data grid as input interface. Can any one help how to start. i need 3 columns date, name, location the location field is drop down field user can select from the list only. the values entered by user should update in the database. …

Member Avatar for agrothe
0
92

The End.