15,300 Posted Topics

Member Avatar for MattEvans

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]

Member Avatar for WaltP
0
62
Member Avatar for mattyd

[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"

Member Avatar for Jaseva
0
107
Member Avatar for arshad mohammed

read [URL="http://www.delphiforfun.org/Programs/15puzzle.htm"]this[/URL]

Member Avatar for aliakseis
0
92
Member Avatar for micros5

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.

Member Avatar for micros5
0
99
Member Avatar for Gajolsen

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.

Member Avatar for Ancient Dragon
0
75
Member Avatar for tech291083

[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 …

Member Avatar for tech291083
0
132
Member Avatar for dalvandi

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

Member Avatar for simona66
0
129
Member Avatar for sree_asrl
Re: Sms

why would you want to write a program that advanced in a programming language you said you know nothing about? Learn the language first.

Member Avatar for sree_asrl
0
116
Member Avatar for priya_pikku

Tutorial is [URL="http://www.easysoft.com/developer/languages/c/odbc_tutorial.html"]here[/URL]

Member Avatar for Ancient Dragon
0
37
Member Avatar for sbenware

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?

Member Avatar for Dave Sinkula
0
941
Member Avatar for Firestone
Re: Time

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 …

Member Avatar for Ancient Dragon
0
82
Member Avatar for ankit_the_hawk

>>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 …

Member Avatar for Nick Evan
0
153
Member Avatar for KevinADC

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 …

Member Avatar for Dani
0
585
Member Avatar for mattyd
Member Avatar for tvpollet
Member Avatar for tvpollet
0
85
Member Avatar for shouvik.d

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.

Member Avatar for shouvik.d
0
85
Member Avatar for edogan

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 …

Member Avatar for edogan
0
77
Member Avatar for bluecat

you can create a structure that contains the x, y, color and shape, then have a vector of those structs.

Member Avatar for bluecat
0
98
Member Avatar for GuruGhulab

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]

Member Avatar for Ancient Dragon
0
127
Member Avatar for vixt90

The easiest sort algorithm to code is the [b]bubble sort[/b]. Just google for it and you will find hundreds of code examples.

Member Avatar for Ancient Dragon
0
95
Member Avatar for tehloki

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?

Member Avatar for Ancient Dragon
0
976
Member Avatar for tgmtgm1
Member Avatar for mattyd

The trick is for each spouse to have a computer then go to a chat room and talk to one another. :eek:

Member Avatar for Junyah
0
60
Member Avatar for shiman999
Member Avatar for Ancient Dragon
0
81
Member Avatar for Ram Sharma

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?

Member Avatar for Ancient Dragon
0
39
Member Avatar for JohnKelly

don't know about VB but [URL="http://support.microsoft.com/kb/118623"]here's[/URL] a c solution

Member Avatar for Ancient Dragon
0
97
Member Avatar for donaldunca

[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]

Member Avatar for donaldunca
0
100
Member Avatar for ankit_the_hawk

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.

Member Avatar for ankit_the_hawk
0
116
Member Avatar for danizzil14

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 …

Member Avatar for danizzil14
0
194
Member Avatar for jd_1604

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 …

Member Avatar for Salem
0
97
Member Avatar for jd_1604

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.

Member Avatar for Ancient Dragon
0
236
Member Avatar for Ancient Dragon

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, …

Member Avatar for Ancient Dragon
0
126
Member Avatar for raz81

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.

Member Avatar for Ancient Dragon
0
137
Member Avatar for amirwan

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.

Member Avatar for Ancient Dragon
0
364
Member Avatar for Jishnu
Re: New

>>#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]

Member Avatar for Ancient Dragon
0
137
Member Avatar for !=logical not

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> …

Member Avatar for bops
0
2K
Member Avatar for lotsofsloths

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 …

Member Avatar for jwenting
0
115
Member Avatar for shouvik.d

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.

Member Avatar for shouvik.d
0
182
Member Avatar for HS20064972

you will have to be a tad bit more specific because there are millions of programs.:mrgreen:

Member Avatar for ~s.o.s~
0
140
Member Avatar for Geek-Master

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 …

Member Avatar for Geek-Master
0
524
Member Avatar for JoBe

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 …

Member Avatar for ~s.o.s~
0
191
Member Avatar for Nick Evan

[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. …

Member Avatar for jbennet
0
237
Member Avatar for kamatatul

maybe [URL="http://www.codeproject.com/useritems/Kiosk100Msr.asp"]this[/URL] will help you

Member Avatar for jwenting
0
91
Member Avatar for amirwan

[URL="http://www.drdos.com/dosdoc/Tcpip/dos_api/api_ch1.html"]Here[/URL] is one.

Member Avatar for Ancient Dragon
0
66
Member Avatar for dinochom

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 …

Member Avatar for Ancient Dragon
0
83
Member Avatar for whitemoss

>>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 …

Member Avatar for Ancient Dragon
0
255
Member Avatar for flageolet
Member Avatar for amishosh
Member Avatar for John A
0
90
Member Avatar for NewVBguy

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.

Member Avatar for NewVBguy
0
77
Member Avatar for Mix

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.

Member Avatar for Ravalon
0
110

The End.