15,300 Posted Topics

Member Avatar for virus.exe

[URL="http://msdn2.microsoft.com/en-us/library/ms686714.aspx"]TerminateProcess[/URL], but it might leave the computer in an unstable situation.

Member Avatar for Ancient Dragon
0
75
Member Avatar for rollingstones

Sorry but we are not in the business of doing people's homework assignments for them.

Member Avatar for rollingstones
0
126
Member Avatar for xexex

Use ifstream to open and read the integers from a text file into an array. Your program should have a loop that will read a single integer and insert it into the next available index of the array. I'm sure your text book has examples of how to do something …

Member Avatar for flexeblesteel
1
291
Member Avatar for naya22

Since you have a c++ program use c++ fstream class instead of C's FILE and associated functions. This is not very complicated to do, it just takes a little planning on what you want the file contents to look like. [code] float bill = 12.32; // $12.32 ofstream out("subscriptionbill.txt"); out …

Member Avatar for naya22
-1
117
Member Avatar for wujianwei

Not generally -- you can use a union something like VARIANT structure in MS-Windows VB. But otherwise the function must already know the data type.

Member Avatar for vijayan121
0
115
Member Avatar for elvla2
Member Avatar for banan
Member Avatar for rapperhuj

we have already gone over this problem[URL="http://www.daniweb.com/techtalkforums/post349069.html#post349069"] here[/URL].

Member Avatar for Ancient Dragon
0
108
Member Avatar for teh_man
Member Avatar for Ancient Dragon
0
98
Member Avatar for mcole50

you don't need the [b]j[/b] loop. Just delete line 10 and increment it in line 14. Don't forget to initialize [b]j[/b] in line 5. [edit]Just like Fox showed[/edit]

Member Avatar for mcole50
0
97
Member Avatar for tech291083

just add .0 after the const as in this example and it will be ok [inlinecode] double microsoft=4294967295.0; [/inlinecode]

Member Avatar for Salem
0
398
Member Avatar for Rob111
Member Avatar for Slavrix

I agree with Salem -- it looks ok the way you have it. Putting it all on one line of code only saves band-width, paper and ink. Does nothing at all for the compiler or program speed.

Member Avatar for addicted
0
146
Member Avatar for karan_21584

Karan: I really don't know VB that well, but don't you have to put the ip address in quotes? [code] ds.tables(0).rows(0).item(0)=ds.tables(0).rows(0).item(0).tostring.replace(ds.tables(0).rows(0).item(0), "http://172.13.15.65/test12/service.asmx") [/code]

Member Avatar for karan_21584
0
313
Member Avatar for tleisher

I all depends on where you live. If you live in Southern California, $200K/year is barly enough to live on. But if you live where I do in the middle of the nation you can live comfortably on 1/4th that.

Member Avatar for jamello
0
466
Member Avatar for m0dernist
Member Avatar for Salem
0
188
Member Avatar for jerryseinfeld

strcmp() compares two strings and returns an integer that indicates whether string1 is less than string2, the same as string2, or greater than string2. For example [code=c] char string1[] = "John"; char string2[] = "Mary"; int n = strcmp(string1, string2); // 0 return value means the two strings are the …

Member Avatar for Ancient Dragon
0
222
Member Avatar for rapperhuj

Is it a C or C++ program? Do you know how to open and read text files? If you do, then just read each line and compare the first two characters with the country code.

Member Avatar for WaltP
0
173
Member Avatar for John A

I like it too and suppose that is true for anyone with something less than perfect eyes.

Member Avatar for ~s.o.s~
0
615
Member Avatar for Masood Ali

It means you have declare the same sqlca object in both *.cpp files. If you want to use the same object in both files use the [b]extern[/b] keyword in one of the two files, like this: [inlinecode]extern struct sqlca sqlca[/inlinecode]. You should use some other name for the object -- …

Member Avatar for Ancient Dragon
0
191
Member Avatar for palsonjj
Member Avatar for T-Fizz

you can use the [URL="http://msdn2.microsoft.com/en-us/library/system.string.compare.aspx"]compare[/URL] method

Member Avatar for Ancient Dragon
0
135
Member Avatar for squinx22

the subject of this thread is confusion -- subject says win32 but you are using *nix os :-/ You can't use win32 api functions in *nix.

Member Avatar for Ancient Dragon
0
28
Member Avatar for rapperhuj

strcmp() only works with NULL-terminated charqcter arrays -- it does not work with binary data or strings that are not null terminated. Other than that, post your code to illustrate what you want to do.

Member Avatar for Ancient Dragon
0
47
Member Avatar for Reema_Hamed

First you need to learn how to properly format your program -- that is one of the sloppiest format methods I've seen in a long time. Here is an example Notice that you should use spaces very plentifully to make your program easier to read. Curly braces go on a …

Member Avatar for Reema_Hamed
0
189
Member Avatar for fatboysudsy

The problem is mis-matched braces '{' and '}'. delete line 119. what is the semicolon doing on line 1?

Member Avatar for WaltP
0
98
Member Avatar for squinx22
Member Avatar for WolfPack
0
106
Member Avatar for sundarN

depends on the operating system. MS-Windows: use win32 api functions FindFirstFile() and FindNextFile()

Member Avatar for Ancient Dragon
0
41
Member Avatar for viivaakash
Member Avatar for Chicano0409

>>I keep getting segmentation faults when running this program. Could anyone help me with this? Yes -- get a clean compile before attempting to run it. your compiler should not create an executable file if it encounters syntax errors, but some older compilers will.

Member Avatar for Aia
0
92
Member Avatar for Mini_The_Great

If the database.txt file is like most other text files in most cases you will just have to rewrite the whole file in order to change just one word. But, if you just want to change one word with another word of the same length you could first locate the …

Member Avatar for Ancient Dragon
0
94
Member Avatar for Pablo César

you will probably have to use one (or more) of the [URL="http://msdn2.microsoft.com/en-us/library/ms682087.aspx"]win32 api console functions[/URL]. I haven't done it myself, but a little research in the link I provided will probably do what you want.

Member Avatar for Ancient Dragon
0
147
Member Avatar for Mini_The_Great

it means there is no overload >> operator for the data type of variable [b]file[/b]. what is [b]file[/b]. please post more code for more in-depts examination of the problem.

Member Avatar for Ancient Dragon
0
64
Member Avatar for Tales
Member Avatar for Matt Tacular

srand() seeds the random number generator, you should call srand() one time only and near the top of main(). Most of us use the time() function as the paramter to srand() [code] int main() { srand(time(0)); } [/code]

Member Avatar for Matt Tacular
0
71
Member Avatar for aerian

YES -- YOUR COMPILER WILL CREATE THE EXE FILE. TELL US WHAT COMPILER AND OPERATING SYSTEM YOU ARE USING. (Please don't use all caps like that because its like you are screeming at us, and I know you don't talk like that to your friends so why screem at us …

Member Avatar for Ancient Dragon
-1
125
Member Avatar for MukeshZ

>>in c++ or VC++ VC++ is a compiler, not a computer language. found [URL="http://www.velocityreviews.com/forums/t286134-how-to-convert-char-to-binary.html"]this[/URL] with google

Member Avatar for MukeshZ
0
495
Member Avatar for rajeev chaubey
Member Avatar for squinx22

are you talking about [URL="http://subversion.tigris.org/project_packages.html"]this[/URL] ?

Member Avatar for thekashyap
0
115
Member Avatar for rapperhuj

In C you can write your own strcmp() by comparing each character of the first string with each character of the second string. If the length of the two strings are not the same then they are obviously not the same thing. If they are the same length then you …

Member Avatar for Ancient Dragon
0
93
Member Avatar for standsinshadows

I wouldn't touch those torrents with a 10-foot pole! How do you know they are safe to install on your computer? For all you know those files are flooded with viruses, worms, etc. Its only legal to share files if the original autor gives you permission (e.g. license) to do …

Member Avatar for joshSCH
0
447
Member Avatar for teteret

fgets() is always better than scanf() because fgets() will not accept more characters than will fit in the buffer. But neither scanf() nor fgets() will meet the requirements of your assignment. You need a function that will get only one key at a time from the keyboard so that your …

Member Avatar for Lerner
0
1K
Member Avatar for srinath.sec

iterate through the list until the current node has the same address as the initial list pointer.

Member Avatar for Ancient Dragon
0
56
Member Avatar for tosik

>>pz help me out Sure, if you tell us what's wrong with the code you posted (other than being horribly formatted)

Member Avatar for Ancient Dragon
0
143
Member Avatar for nikkidee
Member Avatar for nikkidee
0
195
Member Avatar for matsau

you probably will want to use a nice GUI package designed for gamming, like DirectX.

Member Avatar for Ancient Dragon
0
33
Member Avatar for amano
Member Avatar for amano
-1
264
Member Avatar for treble

I removed the smily and added the line numbers to make it a little easier to read the code. Without actually compiling your program my guess is that the compiler doesn't like the open/close parentheses in line 16. And the keyword [b]void[/b] in line 18 should be removed if it …

Member Avatar for treble
0
97
Member Avatar for C++freak
Member Avatar for John A
-1
105
Member Avatar for nandakishore

serial ports, and programs that monitor them, only know about bytes of data on the port, they know nothing about what kind of data it is except monitoring programs can detect ascii text characters. If you send binary data then they can only show you the hex values, not the …

Member Avatar for Ancient Dragon
0
91

The End.