15,300 Posted Topics
Re: The quotes make it unambiguous what the user is supposed to type. If you left the quotes out, someone will probably try this [quote] c:>hello to invoke system shutdown <Enter key> [/quote] | |
Re: [QUOTE=mattyd;309984][COLOR=Black]**[B]NOTICE[/B]: May contain adult language[/COLOR][/QUOTE] Don't you mean "[b]NOTICE[/b] -- It contains [color=red]obscene[/color] language" | |
Re: read [URL="http://www.delphiforfun.org/Programs/15puzzle.htm"]this[/URL] | |
Re: All those functions are Borland-specific and not supported by any other compiler. You have to learn how to write windws gui programs by first creating a win32 program, not a console program. There are lots of tutorials to bet you started. | |
Re: you might add some debug code in that thread that writes stuff to a file so that you can see where it might be failing. Of course this does no good if the thread doesn't start at all. | |
Re: [QUOTE=joeprogrammer;308239]Not to mention some newbies start mixing together C and C++, which would only make a moderator's duty even harder... :D[/QUOTE] I sometimes do that myself, and I've been programming for 20 years:eek: There are some c++ constructs that I just do not like, so I toss C functions into … | |
Re: I don't know what that program is, but [URL="http://www.google.com/search?hl=en&q=8-queens+problem&btnG=Google+Search"]google [/URL]seems to have a fair amount of information | |
Re: why would you want to write a program that advanced in a programming language you said you know nothing about? Learn the language first. | |
Re: Tutorial is [URL="http://www.easysoft.com/developer/languages/c/odbc_tutorial.html"]here[/URL] | |
Re: OMG! where did all those color codes in your post come from?? Did you enter all that crap manually? Or did your editor do that? | |
Re: call time() to get current time in seconds, then localtime() to get tm struct. Then change the hours, minutes and seconds to 0, then call mktime() to normalize it and get the size_t time you would get from time() function. The difference between the two size_t objects is the number … | |
Re: >>How do i convert the string character into a number? you don't need sscanf() -- just subtract '0' from the ascii digit. Make sure the ascii char is a numeric digit before conversion. [code] char a = '1'; int num; if( isdigit(a) ) num = a - '0'; else num … | |
Re: ads are a necessary evil to the survival of DaniWeb, or any other free site. I would rather see a few ads than be forced to pay a monthly fee like some sites require. I did see one ad the other day I thought was inappropriate -- "We'll do all … | |
Re: Its Microsoft os -- you have to reboot it once in awhile. | |
| |
Re: executables normally do not contain symbols unless compiled for debug. But compilers will often create map files that contain the mangled names. Check your compiler's documentation to see if it has an option to generate a map file, most likely it does. | |
Re: check the login account of that service program -- it may not have permissions to do that. Also service programs do not have a console, so it might be waiting for someone to press the <Ok> button in a message box which can not be displayed. I don't see the … | |
Re: you can create a structure that contains the x, y, color and shape, then have a vector of those structs. | |
Re: you need to add two more counters -- total number of morons and another counter to indicate whether the last guess was higher or lower. For example: [code] else if (nNum>nGuess) { if( last_guess < nGuess ) { cout << "moron"; moronCoujnt++; } } [/code] | |
Re: The easiest sort algorithm to code is the [b]bubble sort[/b]. Just google for it and you will find hundreds of code examples. | |
Re: you might want to add some debugging print statements in some of those functions to see if they are writing beyond the boundries of the allocate memory for those arrays. For example, does [inlinecode]loc_x + wd*loc_y[/inlinecode] exceed the allocation limits of the array? | |
Re: that's really crappy code you posted :cheesy: | |
Re: The trick is for each spouse to have a computer then go to a chat room and talk to one another. :eek: | |
Re: This is one of those touchy subjects we'd rather not discuss. Thread closed. | |
Re: I don't understand the question -- do you want to kill other programs with your VB program? Can you explain in more detail what you want , or give examples? | |
Re: don't know about VB but [URL="http://support.microsoft.com/kb/118623"]here's[/URL] a c solution | |
Re: [code] while((ch=getc(f))!=EOF) {i++; fscanf(f,"%d",&v[i]); count++; } [/code] The above is reading the file twice -- the byte read by getc() is tossed into the bit bucket.. Better algorithm is [code] i = 0; while(i < 10 && fscanf(f,"%d",&v[i]) > 0) { i++; count++; } [/code] | |
Re: most programmers frown on using system function for anything but quick-and-dirty little programs that you intend to give to no one. There are almost always C or C++ functions, possibly os api functions, that will do the same thing, often with a little more coding. | |
Re: Only if you wrote the program [b]blender[/b] and add code that will recognize and act upon those [b]command-line arguments[/b]. If you did not write the program (or have the source code) then you are SOL. You might be able to put some ms-windows commands in a batch file that would … | |
Re: put a break point at the beginning of the function and step through the program one line at a time to see where it breaks. Also check the validity of all pointers -- If a pointer has a value something like "hchchchchc" that is what the compiler initializes them to … | |
Re: the errors you posted are not of much value. You should compile your program for debug then step through it one line at a time until you find the place where it crashes. | |
When I use firefox version 1.5.09 I can not copy the highlighted text within code tags to the clipboard. But in IE6/7 I have no problem. Is this a DaniWeb problem or Firefox? I only experience the problem on my home computer, where I use Firefox most of the time, … | |
Re: First place to start is installing the device driver, I suppose you might get one from the camera's manufacturer. [URL="http://www.google.com/search?hl=en&q=smart+camera+device+driver"]Google [/URL]will give you some information also. | |
Re: have you read [URL="http://www.google.com/search?hl=en&q=dos+sockets&btnG=Google+Search"]these google links[/URL]? MS-DOS is nearly extinct so you will probably have a very difficult time finding socket libraries for it. | |
Re: >>#define M 100 *&^asdf the compiler does not evaluate macros until used. If you coded something like below your compiler would complain bitterly at you [inlinecode]int x = M;[/inlinecode] | |
Re: This program was written for something else, but I added the code to do it in full screen (but its not really full screen on XP, just as big as the cmd prompt window can get :eek: ) [code] [color=red]#define _WIN32_WINNT 0x0500 #include <windows.h> #include <Wincon.h>[/color] #include <string> #include <algorithm> … | |
Re: Passwords are normally a string of characters, which could be almost any character you can type on the keyboard. An [b]int[/b] is an integer that holds numeric information only. If you just want to type numbers and not letters then an [b]int[/b] will probably be ok unless you type a … | |
Re: You want the address of a function? [code] int foo() { // blabla return something; } // pointer to the function int (*fn)(); // set pointer fn = foo; [/code] You can also get pointers to class methods. I have not used them so I'm not sure how they work. | |
Re: you will have to be a tad bit more specific because there are millions of programs.:mrgreen: | |
![]() | Re: you can't boot up a computer remotely that has been turned off -- that would be a horrible security violation for all sorts of hackers and spammers. Why don't you have each computer check at bootup time for the updates? Or tell your people to leave their computers on and … ![]() |
Re: 10 is not a valid statement. you can write a short program that tests each of your problems. [code] int main(int argc, char* argv[]) { int a[5][3] = {0}; int b = 1; int c = 2; int d = 3; a[4][2] *= * b ? c : * d … | |
Re: [QUOTE]I try to read everything ;) Anyway, I've deleted all my subscriptions except for this thread and set my notification back to 'daily'. So now I hope that someone will reply so I can test if it was a problem with the amount of subscriptions :) [/QUOTE] Here's your reply. … | |
Re: maybe [URL="http://www.codeproject.com/useritems/Kiosk100Msr.asp"]this[/URL] will help you | |
Re: [URL="http://www.drdos.com/dosdoc/Tcpip/dos_api/api_ch1.html"]Here[/URL] is one. | |
Re: enum is not a function but playsound() is. you should learn more about c language before attempting to use either. Almost all C tutorials and books will teach you about enum, but almost none of them will teach you about playsound() because it is specific to windows os. [edit][URL="http://irc.essex.ac.uk/www.iota-six.co.uk/c/h1_abstract_data_types_enum_typedef.asp"]Here [/URL]is … | |
Re: >>there is no data from database written. Read you program again. Where does it even attempt to write anything to the text file? Where does your program call readFromDB() to get the row from the table? You program consists of two functions, one function that just opens a file then … | |
Re: please post one or two lines of the file so we can see its format. | |
Re: To erase the square, redraw it in the same color as its background. | |
Re: I would imagine dbase has an export command to export the database to a text file. Then you should be able to use Access's import command to import it. | |
Re: its not a C# command. Its just illustrating how to run a demo program with the arguments. That is what you would type on the commond prompt window. |
The End.