64,152 Solved Topics
Remove Filter ![]() | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
| |
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] … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
| |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 | |
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) | |
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 >> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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?. … | |
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 … | |
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 … | |
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 … | |
Please explain. Does it automatically include the default constructor? | |
how can i make 2 digit counter starting from 00 to 99 and will reset when it reaches 99 . . . . | |
I understand the concept but i don't know when to use and what my teacher expects when he says overload certain operators. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.