64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for zimis

Hello, I'm trying to make client program which connects to server, and comunicates with it for unlimited time. SOCK_STREAM (TCP). Is there a way to change the way of getting server messages? Now it's just infinite loop. (I think thats not good, and requires a lot of CPU cycles) [CODE=c] …

Member Avatar for Salem
0
308
Member Avatar for gopi17

can somebody help me with this....i'm creating a 4X4 sudoku program...with 8 auto-generating numbers and 8 user inputs...i used the random number function rand() but the numbers keep on repeating...the problem is i'm not allowed to use arrays... [CODE] int main() { int row1col1,row1col3,row2col2,row2col4,row3col1,row3col3,row4col2,row4col4; int row1col2 = 0; int row1col4 …

Member Avatar for wildgoose
0
222
Member Avatar for scooby36

I have a main form with a combobox linked to a dataset when the user selects an account I have another form that opens the customers details on it. I can get it to display the first customer in the combobox but if select a different customer the form loads …

Member Avatar for scooby36
0
97
Member Avatar for firoz.raj

Simple made programme for testing purpose.user take input from 1 to nine.and function convert that numeric number into text like one two ...nine. function is working fine .but the number in words is not comming in Upper case.Kindly let me know the idea.any help would be highly appreciated. [code=vb] Public …

Member Avatar for vb5prgrmr
0
89
Member Avatar for reyarita

hey guys i need some a litle help with my vb. i have a problem with my project i cant delete a data in a file and i cant split the name,age and id if ever i click it, it will display above of it in FRMRETRIEVE i have here …

Member Avatar for vb5prgrmr
0
131
Member Avatar for rje7

Why does the thread 3 execute before thread 2 though iam invoking it before thread 3? if i am right.. after invoking thread 1 the printmsg1 enters into the synchronized state. thread 2 is put in the stack then thread 3 is put in the stack. so after the thread …

Member Avatar for JamesCherrill
0
1K
Member Avatar for PinoyDev

hi guys. I have succesfully loaded all the data needed to an excel worksheet.this works fine.But i want to show the excel on my own form like in form1 rather that displaying it automatically like a normal app. my code(this works for me) below pls help.! [code=vb] Sub loadoutputaging() 'On …

Member Avatar for vb5prgrmr
0
118
Member Avatar for Nathan Campos

Hello, I'm trying to get a string from a thing that is inside quotes as you can see [URL="http://www.daniweb.com/forums/thread209962.html"]here[/URL], but when i try to compile i got this errors: [code]ubuntu@eeepc:~/C++/Tree$ g++ -o tree tree.cpp tree.cpp: In function ‘int main(int, char**)’: tree.cpp:65: error: ‘get’ was not declared in this scope tree.cpp:65: …

Member Avatar for Nathan Campos
0
1K
Member Avatar for Nathan Campos

Hello, I'm learning C++ and all that i learn i try to put in a interpreter of a language that i'm developing, it's only to practice, but here is a thing that i don't learned already, that is how i can get a string that is inside quotes, because i …

Member Avatar for Nathan Campos
0
3K
Member Avatar for hemaljoes

I am facing problem with crystal reprot when i run that report on to the other machine and the database source is not the same as the machine where the reprots where created. It gives a logon Failed Message. I tried the following code as well but still it give …

Member Avatar for DdoubleD
0
166
Member Avatar for darab
Member Avatar for kvprajapati
0
113
Member Avatar for aulason

hi there, i want to randomly pick an element from an array, so i used the following code. [code=C#] Random rndCell = new Random((int)DateTime.Now.Ticks); while (true) { rndCell.Next(aCells.Length); int rndIndex = Convert.ToInt32(rndCell.ToString()); if (aCells[rndIndex] != null) { aCells[rndIndex] = SOMETHING; // DO SOMETHING ELSE WITH rndIndex... break; } } [/code] …

Member Avatar for ddanbe
0
215
Member Avatar for Zetlin

Hello everyone, ok so I am working on this code that takes a string and splits it using the re module. The string contains words in between "<" and ">" (sometimes multiple words). Now what the program does is it splits the string using the two characters above. Then it …

Member Avatar for Zetlin
0
126
Member Avatar for spauka

Hi all, I am a writing a small plugin to a piece of software that allows people to parse python files and return the output to the program, and to do that, i am allowing users to enter their script. However, they can only enter into a single line text …

Member Avatar for spauka
0
115
Member Avatar for mandofl

Hello. What im tryin to do is answer the following. Write a class named Car that has the following member variables: yearModel, make, speed. In addition the class should have the following constructor and the other member functions constructor-accept the cars year model make as arguments. an assign to the …

Member Avatar for necrolin
0
3K
Member Avatar for FJones

Here is the problem: Write a C# program that will read five scores, each on a separate line, from an external file named Unit09data.txt. Your program should then calculate the average of those scores and write the average, formatted to two decimal places in a different external file named output.txt. …

Member Avatar for FJones
0
161
Member Avatar for dgr231

Hello all, I am in the process of teaching myself c++. I wrote one program successfully and I'm trying to write my second. I have run into a problem that I can not seem to figure out at all. I understand that this seems trivial, but I really need to …

Member Avatar for dgr231
1
157
Member Avatar for kashn

Hi, I'm currently stuck, at this problem. I've created a tab control and make it add a new richtextbox each time a tab is added, but my problem is I can't figure out how to get the .Text part of that richtext box in that tab... here is my code …

Member Avatar for kashn
0
148
Member Avatar for willygstyle

Hello all I have been a hobbiest programmer for quite some time now and recently got back into it. I'm starting with a pretty simple program that will track inventory for my moms buisness. I've worked through most the common problems but can't seem to figure out why im getting …

Member Avatar for willygstyle
0
129
Member Avatar for sivak
Member Avatar for sknake
0
142
Member Avatar for JackDurden

How do you erase an element thats inside a map. Not the key but the element the key is pointing to? This doesnt seem to be doing what i want it to. [CODE]map<int, vector<int> > my_map; map<int, vector<int> >::iterator it; void erase(int num) { for(map::iterator item=my_map.begin();item != my_map.end()) { if(it …

Member Avatar for jesseb07
0
151
Member Avatar for smoore

Okay just started teaching myself python recently and am on to pickling stuff. I just wrote a simple program exactly like the tutorial said (a few different ones actually) and I am getting an error. Here is my code: [CODE] import pickle file = open('./text/pickle.txt','w') list = ['one',2,'three',4,'five'] pickle.dump(list, file) …

Member Avatar for smoore
0
244
Member Avatar for TheWhite

I'm looking for a way to detect when a JFrame is moving (maybe there is some kind of listener). I have a primary JFrame that loads a 2nd JFrame next to it. I want this 2nd JFrame to move simultaneously with the primary JFrame as though it were attached. I …

Member Avatar for Ezzaral
0
137
Member Avatar for sohil.shivani
Member Avatar for slayerace180

ok, so ive rattled my brain for quite some time now and im tired, i need help on my program because as of now, im down to 2 debugging errors "YAY!"... here is what the debugger says... " Line 7: error: too few arguments to function `void nextArray(bool (*)[20])' Line …

Member Avatar for slayerace180
0
105
Member Avatar for madhura09

hi I have a coulumn named Status which can have only three values: 1. Available (Default) 2. Unavailable 3. CheckedOut How can I add this functionality while creating the table? i.e. while creating the table itself how can i specify that the column can hold only these 3 values and …

Member Avatar for madhura09
0
159
Member Avatar for penguin22

hi guys i can build and clean the vs solution in python and get the exe's to build but don't know how to create a window installer

Member Avatar for jlm699
0
144
Member Avatar for funfullson

Sorry I am asking a beginners problem between professional discussion.But I realy confused witch one is better.qt, gtk, wx, opengl or one else.please guide me with a clear comparison. Thanks dears. Editor ... moved from Re: Python GUI Programming (rule is: ask question in regular forum)

Member Avatar for funfullson
0
142
Member Avatar for dgr231

Hey all, I know this is a very newbish questions, but I couldn't readily find the answer on this board so I figured I would ask. Consider the following code snippet: [code=cplusplus] for(i=0;i<5;i++) { int number; int counter; cout << "Enter a number less than 10:" << endl; cin >> …

Member Avatar for Salem
0
133
Member Avatar for Xessa

Hello people. I have a pop up window and i have 2 pages that open the same pop up window. I want to make a button hidden when one specific page opens my pop up. If the other page opens my window; i want the button to be there and …

Member Avatar for Krishna_vs
0
99
Member Avatar for laghaterohan

I am developing a windows application wherein i need the application to work in the following way : Say i have a textbox n listbox . Say in a textbox i type R then all the items in the listbox that contains the letter "R" in them should be listed …

Member Avatar for DdoubleD
0
150
Member Avatar for nkarvi

Hi everyone, I am new to c# and have come across to this: dataGridView[int a, int b].Value.ToString(); I understand that it takes the values of rows and turns them to string, but I cannot figure out the two integers. Are they the first and last rows respectively? What am I …

Member Avatar for nkarvi
0
92
Member Avatar for softeye

long time reader first time poster :-) Hi, i have a form that get all the info from flash and send the vars to php form all works well but hebrew.... i get some "jibrish" other experiments i made shows: a. if $content = "some hebrew characters"; embed heb-text in …

Member Avatar for omniuni
0
184
Member Avatar for 666kennedy

i know that the datetime.utcnow command is to show the date and time of the instant it was called. just say i have this [CODE] int time; time = //27/08/2009 09:00:00 time = time + //15 seconds [/CODE] what is the code or the numbers i need to use for …

Member Avatar for ema005
0
191
Member Avatar for gopi17

I'm juz wondering how do I send a single value to a 8-parameter function... [CODE] void enterdata1(int &row1col2) { cout<<"Please enter the number for Row 1-Columm 2"<<endl; cin>>row1col2; if(row1col2 != 1 && row1col2 != 2&& row1col2 != 3 && row1col2 != 4) { cout<<"Please enter the correct number (Which is …

Member Avatar for necrolin
0
152
Member Avatar for BigDan531

okay heres my code below: [code] $keys = rand(10000,99999); $fkeys = rand(100,999); $bkeys = rand(100,999); $key = $fkeys,$keys,$bkeys; echo $key [/code] this line "$key = $fkeys,$keys,$bkeys;" is giving me errors. i would like the result to be something like $fkeys$keys$bkeys. Any idea how i would be able to do that?. …

Member Avatar for innocent.boys
0
97
Member Avatar for HarryGabriel91

Hello guys! I want to create a dropdown menu to my site and I did it with JS instead of CSS because some functionality was needed that is'nt available in CSS, so I wrote it completely in JS (the styling is in CSS of course). Now, after I've ironed out …

Member Avatar for HarryGabriel91
0
214
Member Avatar for johnyjj2

Hello! I was looking for the answer here but I couldn't find: [url]http://www.freepascal.org/port.var[/url] . I've got old code in Turbo Pascal and I try to run it on Dev-Pascal 1.9.2. (I also tried Lazarus application, but there was "Error. Project raised exception class 'External: SIGSEGV'."). [code]Free Pascal Compiler version 1.0.6 …

Member Avatar for johnyjj2
0
2K
Member Avatar for vipinsinghal

hiii all this is vipin from btech 3rd year...now i have to do a mini project as a semester project. It is my first project of my life..I have chosen project name "Online FIR System" basis on database. FIR by any person can be done by online and he/she can …

Member Avatar for peter_budo
0
207
Member Avatar for lotrsimp12345
Member Avatar for ladines

how can i make 2 digit counter starting from 00 to 99 and will reset when it reaches 99 . . . .

Member Avatar for wildgoose
0
40
Member Avatar for lotrsimp12345

I understand the concept but i don't know when to use and what my teacher expects when he says overload certain operators.

Member Avatar for lotrsimp12345
0
183
Member Avatar for sdmahapatra

Hi everyone I couldn't find the actual logic behind below two problems: [code](1) how to capture number of occurrences of 3 between 1 to 100? and (2) assigns a function to a pointer and subsequently call it.[/code]all problems are in c++ As I'm new in this field so,please help me …

Member Avatar for mrnutty
0
125
Member Avatar for lolwtf

Hi all, I'm going to attempt to create middleware in C# and i need some advice. What I'm looking to do is have an open socket, then when our VB app connects to it, it makes another socket and keep the newly connected one open. It then has to get …

Member Avatar for kvprajapati
0
157
Member Avatar for Voulnet

Hello all, I'm working on a C# application using MS Visual Studio 2008, and I want to make an installer for this project, so I used VS2008 to add a Deployment Project and chose Installer Wizard. The Wizard proceeded great and all, but when I try to build the Setup …

Member Avatar for kvprajapati
0
136
Member Avatar for xuexue

guys i need help, how could i get the id of a button? i have this code [code] echo "form action = 'sec_ph_fileMain.php' method = 'post'>"; echo "<input type = 'submit' name = 'upload' value = 'Upload' id = 'hi'>"; //variable declaration $upload = $_POST['upload']; [/code] what i want is …

Member Avatar for xuexue
0
119
Member Avatar for sackymatt

Hi all, I want to know how i can decrement the value of quantity in stock in my data base. This would be based on how times an item is purchased. So every time an item is clicked, i want to show the quantity has decreased in the database. I …

Member Avatar for vb5prgrmr
0
227
Member Avatar for Hiroshe

I'm seeing if it is possible to write a pong game only using standard C with maximum portability. I've worked out everything except user input. When the game is playing, If the user has no key pressed down, the paddle does not move but the ball should keep moving. I …

Member Avatar for Duoas
0
2K
Member Avatar for harry010

Hi, I've written a program that uses two objects that look like the ones below, and I was wondering why i would need an assignment operator and copy constructor for either of these classes. Are strings like[ICODE] char*[/ICODE] (dynamic memory)? It would not be difficult to write these methods, I'm …

Member Avatar for harry010
0
196
Member Avatar for Cheeki

Hi guys, I was hoping some one could help me with a problem im having with Ajax. Im very new at Ajax and don't really understand it completely. My current situation is as follows: 1: I have a main page which loads a flowchart.gif image. 2: Along side the flowchart …

Member Avatar for Airshow
0
266

The End.