15,300 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: >>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() | |
Re: 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 … | |
| |
Re: [QUOTE=The Dude;494128]The file is gone!!! Im getting a 404 error :([/QUOTE] I get the same thing. :'( | |
Re: 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 … | |
Re: >>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 … | |
Re: pass the array as a parameter [code] int pick(int choice[]) { } [/code] | |
Re: >>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 = … | |
Re: you forgot [URL="http://en.wikipedia.org/wiki/Right-handed"]ambidexrous[/URL] | |
Re: we will be glad to hlep you when you show us your effort to do it yourself. | |
Re: that program is pure nonsense -- it will not compile. | |
Re: [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. | |
Re: >>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. | |
Re: 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. | |
Re: [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. | |
Re: Huh ??? You can have mine for a million dollars :) | |
![]() | Re: 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]. |
Re: 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). | |
Re: 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 … | |
Re: maybe [URL="http://windows-programming.suite101.com/article.cfm/programming_listbox_windows_api"]this[/URL] will help you. | |
Re: what is the value of [b]i[/b] when that read loop finishes? Is it greater than 300 ? | |
Re: 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] = … | |
Re: [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 … | |
Re: 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 … | |
| |
Re: 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. | |
Re: autos that apparently don't have working turning signals. | |
Re: 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] | |
Re: A big rock from outerspace will strike the earth and destroy all human life. | |
Re: Never seen the avatar problem but I do see the same probley hollystyles mentioned. I'm also using IE7 on Vista. | |
Re: did you compile the dll for DEUG ? Does your program use LoadLibrary() to load the DLL into memory ? | |
Re: [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] | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: [confused]How does the code you posted relate to your original question? [/confused] | |
Re: 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 … | |
Re: you forgot to include <string> >> system ("pause") ; Don't do that. Just use [icode]cin.get()[/icode] | |
Re: 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 … | |
Re: >>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. | |
Re: yes, yes, yes, and yes. Beginning to sound like the Beetles Yea Yea Yea! | |
Re: >>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 … |
The End.