15,300 Posted Topics

Member Avatar for jarhead741

1) delete line 14 -- it is causing a huge memory leak. 2) line 22: Don't try to get fancy -- split that into two lines so make it easier to understand. Don't write programs in an attempt to impress anyone because you will probably fail. 3) a few seconds …

Member Avatar for jarhead741
0
95
Member Avatar for gallantmon1

Need an example. you want to change "WethePeopleoftheUnitedStates" to this: "We the People of the United States" ? If the text is in a file then you will have to completly rewrite the file. First open the original file for reading, then another file for writing. In a loop read …

Member Avatar for gallantmon1
0
154
Member Avatar for shankhs

Is EventHandler.h is a file that you created? If it is then use Windows Explorer and check if the file exists ? Is it in the same folder as the other source files, such as try.cpp ? If all those are ok, then post the code for the file that …

Member Avatar for shankhs
0
2K
Member Avatar for stackOverflow

Of course its possible, but I don't remember how to do it because that compiler you are using is about 20 years old (maybe more) and is only used nowdays as a toy for kids to play around with. Anyone who really wants to learn how to program would use …

Member Avatar for stackOverflow
0
322
Member Avatar for bmaglar

create a structure that will keep track of the frequencies [code] class freq { public: freq() {value = quantity = 0;} int value; int quantity; }; [/code] Then an array of those structures -- since you need two arrays with a total of 30 elements then you will need at …

Member Avatar for bmaglar
0
80
Member Avatar for sarlota123

an anti-spyware program doesn't do the same thing as an antivirus program. I run avast and SpywareBlaster, but that's not to say they are the best at what they do.

Member Avatar for crunchie
0
89
Member Avatar for k2k

>>what class should I use to do this? Its not a c++ class, just call standard C library functions [URL="http://cis.kutztown.edu/~frye/cgi-bin/unixManPages.cgi?rename+2"]rename[/URL]() and remove()

Member Avatar for Salem
0
230
Member Avatar for driplet

The good news is C++ has what is called global data objects -- objects that are declared outside any function are considered visible (scope) and usable to all functions/classes within the entire program. The bad news is global data is very frowned upon because they make the program more difficult …

Member Avatar for Ancient Dragon
0
118
Member Avatar for arunpawar
Member Avatar for sarehu
0
106
Member Avatar for peter_budo

[QUOTE=The Dude;494128]The file is gone!!! Im getting a 404 error :([/QUOTE] I get the same thing. :'(

Member Avatar for lostandfound
0
107
Member Avatar for lasher511

The stork story is in all the cartoons -- at least all the ones I used to watch when I was a kid. I was raised on a farm. One day when I was about 10 I saw two chichkens getting it on when I asked my mother what they …

Member Avatar for sneekula
0
276
Member Avatar for engg_mohit420e

>>Is window vista is good version of its family yes >>u need a good graphics card and lots of harddisk Its really cheap now. If you can't affort the few dollars to upgrade then don't install Vista. >>and i think that it doesn't support to MS DOS also. No version …

Member Avatar for fishsqzr
0
182
Member Avatar for mr.cool

pass the array as a parameter [code] int pick(int choice[]) { } [/code]

Member Avatar for invisal
0
91
Member Avatar for Suraine

>>the following hightlighted text There are no highlishted text. Do you mean lines 5, 6 and 7 ? That is doing the same thing as if there were a series of [b]if[/b] statements, like this: [code] if( port == S1) rsensor = ROTATION_1; else if( port == S2) rsensor = …

Member Avatar for Suraine
0
134
Member Avatar for uniquestar

you forgot [URL="http://en.wikipedia.org/wiki/Right-handed"]ambidexrous[/URL]

Member Avatar for scru
0
153
Member Avatar for xeroz

we will be glad to hlep you when you show us your effort to do it yourself.

Member Avatar for wamuti
0
249
Member Avatar for Jishnu
Member Avatar for Jishnu
0
223
Member Avatar for daabomb2002

[QUOTE=jbennet;506686]i get 60+ emails a day from daniweb about thread notifications lol[/QUOTE] You can turn them off in Control Panel unless its an automatic message from a moderator.

Member Avatar for A_member
0
103
Member Avatar for SHWOO

>>This occurs in the EnableLogging() function I doubt it -- that function only has two lines of code, neither would cause that problem. You need to learn to use your compiler's debugger and step through the program line-by-line to find the real problem.

Member Avatar for SHWOO
0
199
Member Avatar for The Midnighter

probably the easiest solution is to do a switch statement on the letter entered and then process the number(s) following it inside the case. Might want to write separate functions for each case to make the switch statement smaller and more manageable.

Member Avatar for The Midnighter
0
142
Member Avatar for FireSBurnsmuP

[quote]PC and Mac compatible [/quote] IMO it is not compatible with linux, but could be wrong. Do you actually have one of those devices? The CD must tell you how to program it afterall that's one of its advertised features.

Member Avatar for Ancient Dragon
0
146
Member Avatar for ithelp
Member Avatar for Thew

you might find the answer in one or more of[URL="http://www.google.com/search?hl=en&q=how+to+call+dll+from+delphi"] these google links[/URL].

Member Avatar for Ancient Dragon
0
143
Member Avatar for _tim

if you are an independent contractor why does a company that you have a contract with provide you with insurance? you are not their employee so why should they provide you with medical insurance (I assume that's the kind of insurance you are talking about).

Member Avatar for _tim
0
279
Member Avatar for WhiteHatHacker

There are several ways to implement your problem, but the simplest for you is to just use a series of [b]if[/b] statements [code] if( function == "foo") foo(); else if( function == "foo1") foo1(); // etc etc [/code] There are a lot more efficient ways to code it but I …

Member Avatar for WhiteHatHacker
0
81
Member Avatar for Convert

maybe [URL="http://windows-programming.suite101.com/article.cfm/programming_listbox_windows_api"]this[/URL] will help you.

Member Avatar for Ancient Dragon
0
117
Member Avatar for k2k
Member Avatar for WaltP
0
91
Member Avatar for nnobakht

post your code because I can't see your monitor very well from my house :) [b]argc[/b] parameter tells the number of arguments on the command line plus one for the program name itself. In your example, argc should be 5, and the valid strings in [b]argv[/b] are [code] argv[0] = …

Member Avatar for nnobakht
0
92
Member Avatar for kami7125

[QUOTE=kami7125;511644]Ok this is a second part I m working on atm. It opens the file...reads a line. checks the lenght of te line and the if statement is checking if a character in the line is a letter ... and now i dont know what to do.... to check which …

Member Avatar for Ancient Dragon
0
125
Member Avatar for Ravenous Wolf

i don't think you want such a list because the list is so long. we buy hundreds of things every month. how about you giving us your list and we give you our prices. i would think this information should already be available someplace. sugar -- 10 lbs is $1.49 …

Member Avatar for sneekula
0
243
Member Avatar for invisal
Member Avatar for Xsimulator.net

Ok here is my reply >>Now nobody can reply to my this thread your text will be hidden try to reply and see the magic!!! You don't have the permissions to accomplish that.

Member Avatar for Estella
0
311
Member Avatar for Ezzaral
Member Avatar for Estella
0
214
Member Avatar for amithasija
Member Avatar for sweRascal

the easiest was is to use streamstring class [code] #include <sstream> ... ... stringstream sqlquery; int seconds = time (NULL); string characters; characters = "text from user input"; sqlquery << "INSERT INTO chatlog (datetime, message) VALUES ('" << seconds << "'','" << characters << "')"; [/code]

Member Avatar for sweRascal
0
111
Member Avatar for zandiago

A big rock from outerspace will strike the earth and destroy all human life.

Member Avatar for Ene Uran
0
206
Member Avatar for The Dude

Never seen the avatar problem but I do see the same probley hollystyles mentioned. I'm also using IE7 on Vista.

Member Avatar for The Dude
0
255
Member Avatar for complete

did you compile the dll for DEUG ? Does your program use LoadLibrary() to load the DLL into memory ?

Member Avatar for Byaptia
0
124
Member Avatar for vikasmailsu

[URL="http://oedbx.aroh.de/"]for what its worth[/URL] and [URL="http://www.google.com/search?hl=en&q=dbx+file+format"]here[/URL]

Member Avatar for vikasmailsu
0
207
Member Avatar for Beastmanh

My guess is that you did not run the hardware compatability test program available at Microsoft. Most older computers and/or hardware (before 2001) will fail the test.

Member Avatar for darsh999
0
376
Member Avatar for danibootstrap

How to send/receive on serial port is operating system dependent. The code you posted was written for MS-DOS and Dev-C++ only compiles for MS-Windows. You can not use any of the code you posted with that compiler. So you might as well just toss it away and use win32 api …

Member Avatar for danibootstrap
0
3K
Member Avatar for swethakiran

You have basically two choices: either MFC or ATL, per [URL="http://msdn2.microsoft.com/en-us/library/ms974283.aspx"]this article[/URL]. Read the whole article for a more in-depth discussion. [quote]C++ is a great language for writing performance-critical ActiveX components. With C++, you can create small, fast objects, if you take your time and are careful. MFC can get …

Member Avatar for swethakiran
0
4K
Member Avatar for lastcraft

If all the functions are in one *.c file then you can declare all the internal functions with the [b]static[/b] keyword and the symbols will not appear in the libraries or be accessable outside the *.c file.

Member Avatar for lastcraft
0
167
Member Avatar for lifei

[confused]How does the code you posted relate to your original question? [/confused]

Member Avatar for lifei
0
126
Member Avatar for rajatC

post your code. The cells should be separated by comms, spaces or tabs. Each row separated with '\n'. I would use a combination of stringstream and getline() to read the file and separate its cells. Something like this which assumes cells are separated with white space. A little different when …

Member Avatar for jacki
1
6K
Member Avatar for yarita

you forgot to include <string> >> system ("pause") ; Don't do that. Just use [icode]cin.get()[/icode]

Member Avatar for Arpy Giri
0
154
Member Avatar for isocam

Mazatrol.dat is not a binary file but a text file that contains probably some bitmapped representation of the data that needs to be sent to the machine tool. In order for Mazatrol.dat to be useful to you, you will have to find out what all those numbers mean, one way …

Member Avatar for tom curren
0
402
Member Avatar for maHvic

>>I hope you'll see this information helpful... Oh God how much more could you be wrong! To OP: forget the crap that he just posted, its nonsense.

Member Avatar for invisal
0
202
Member Avatar for kv79

yes, yes, yes, and yes. Beginning to sound like the Beetles Yea Yea Yea!

Member Avatar for vegaseat
0
120
Member Avatar for deicer

>>I'm really having trouble figuring out how to create this function How to creat the function or how to calculate the time interval? To compute the interval you also need the date (day, month and year) because time intervals can span days or even years. Believe it or now but …

Member Avatar for deicer
0
134

The End.