15,300 Posted Topics
Re: This pole was quite easy to answer because EVERYBODY knows that politicians all around the globe are liers and cheaters. Sometimes thay have to be like that in order to protect national secrets -- but not all the time, especially around election time. | |
Re: You have to write DLL in C. [URL="http://support.microsoft.com/kb/106553"]Here's[/URL] some information about that. | |
Re: I think that is a file created by Microsoft Access. There are several ways to read it, and all of them require knowledge of SQL query language embedded in c or c++ program. Probably the most common way to read the file is via ODBC which is a set of … | |
Re: >> Typo's are one thing. Completely failing to grasp the concept of proper spelling and grammar, is just plain dumb. English is not the native language of many posters, so I rarly, if ever, criticize anyone for their use of English unless they use abbreviations such as y for you. … | |
Re: You can write one GUI program that contains the edit box and reads the command-line arguments. Then write another program that calls CreateProcess() to launch the GUI program. But why would you want to do that because it is a huge waste of computer resources and time ???? | |
Re: variable NAV is used without ever being initialized or changed so it contains just some random value. You need to rethink what you want to do with that variable. | |
Re: [URL="http://www.research.att.com/~bs/"]Link [/URL]with FAQs and other information | |
Re: line 16: I don't know what compiler you are using but mine won't compile that line because arrays expects a const value. Maybe there is something new in C99 ? Most compilers will not like that line. >>I get an infinite loop if my random number is 0 Yes because … | |
Re: You have the .h file but you failed to add the c++ code for that email class. If its some library you are using then you have to add the *.lib to the project. | |
Re: >>The goto statement I put in there, I have yet to test. I Don't bother to test it. Just delete it. I know some teachers that will give students an F for turning in a program that contains one or more goto statements. The goto statement is almost never needed. … | |
Re: Remove the DllProctTest.lib from the DLLProctTest1 project -- load library is probably failing because it has already been statically linked to the *.exe program (just guessing). Also, the dll must be in one of the directories in the PATH statement or the current program's working directory. You might have to … | |
Re: >>36 Ways To Reduce Stress 36. Retire, draw social security old-age payments and let all you young HS and college students worry about how to pay the bills. My doctor told me just last week that I now have the blood pressure of a teen ager ! :) :) | |
Re: You need to start reading the descriptions for the System::String methods in [URL="http://msdn2.microsoft.com/en-us/library/system.string.first.aspx"]msdn[/URL] so that you can learn how to look up the method(s) you need to solve your problems. What you need is a method that will locate (or find) the last '\' in the string then another method … | |
Re: what are a few of the error messages you got ? What compiler are you using ? My guess is that you did not write the code you posted because its too advanced for someone that asked the question you asked. The code appears to have been written with Turbo … | |
Re: You could begin your research [URL="http://www.daniweb.com/search/google.php?domains=www.daniweb.com&q=pdf+file&sitesearch=www.daniweb.com&client=pub-8426641637123945&forid=1&ie=UTF-8&oe=UTF-8&flav=000000&sig=Au_QpLTb4IAmuMq6&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23BBBBBB%3BVLC%3A0033CC%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AFFFFFF%3BALC%3A0033CC%3BLC%3A0033CC%3BT%3A444444%3BGFNT%3A0033CC%3BGIMP%3A0033CC%3BFORID%3A11&hl=en"]here.[/URL] | |
Re: line 8 fails because cin requires a POD (Plain Old Data) type, unless you specifically write an operator >> overload method for the class. If you want to get the partnumber then do it something like this: [code] Invoice inv; string partnumber; string description; cout << "Enter part number\n"; cin … | |
Re: Code tags: [noparse] [code=c++] // your code goes here [/code] [/noparse] I always manually type in the code tags you see above. I only takes a second or two to get great looking results. | |
Re: [QUOTE=niek_e;535160]. A few weeks back I saw that a Mod gave a new member Reputation for using code tags. That's just to indicate how special it is that a new member actually reads all the info he/she is given. Niek[/QUOTE] I will do that for new members that take the … | |
Re: use the Advance button, scroll down the page, and click the checkbox that says something about disabling smilies within the text. | |
Re: Yes I agree Dani has done a great job with DaniWeb. It didn't happen overnight or without a great deal of effort and planning. | |
Re: The iterators I've worked with are defined like [icode]LinkedList<T>::iterator iter[/icode] and use begin() and end() to iterate through the list. | |
Re: why don't you do this the easy way by using the ifstream >> operator to remove all white space between words with output the word just read with one space [code] string word; while( infile >> word) outfile << word << " "; [/code] | |
Re: If you want to put all those 100 numbers on one line you will have to change the font size to something very very tiny -- so tiny you probably won't be able to read the numbers. | |
Re: Look at that first error message, then look at your program. Do you see [b]aTable[/b] defined anywhere ? Answer: NO you will not. Well what do you think you need to do about it? Hint: Check spelling and capitalization. You also need to include <iomanip> to get the [b]setw[/b] function … | |
Re: line 47 is wrong. you should use [b]current[/b], not [b]new_ptr[/b] | |
Re: I tried to compile it with VC++ 2008 Express and got a lot of warnings. Most of them were about functions that are declared to return an int but return nothing. You should either add return a number or make the functions void. line 21: you are allocating too little … | |
Re: just delete line 4, 5 and 6 because it is defined in windows.h (wincon.h) >>printf("%d",x.WINAPI); what is [b]x.WINAPI[/b]? >>Please advice what is wrong with the syntax Everything. WINAPI is not a data object that can be printed. | |
Re: main.cpp line 54: ios::app is only for output files, not input, so you might as well remove that from the open statement. The main reason your program doesn't work is because of the way you are writing out the records. So NOT use ios::app (append) in the open statement, and … | |
Re: One way is to stop the timer before the process starts then restart it after it finished [code] KillTimer(hWnd, uIDEvent); // stop the timer // Do some processing here SetTimer( hWnd, uIDEvent, uElapse, lpTimerFunc); // restart timer [/code] | |
Re: you forgot to post the code you have written so far [edit]Oops! you used wrong kind of tags which hid your code. [/edit] | |
Re: Since they are consequential numbers its pretty easy for format the filenames [code] #include <cstdio> #include <iostream> #include <fstream> using namespace std; const int MAXPATH = 255; int main() { int i; char filename[MAXPATH]; for(i = 0; i < 58; ++i) { sprintf(filename,"%02d.txt", i+1); cout << filename << "\n"; ifstream … | |
Re: You probably failed to create a new project. Select menu item File --> New Project, then select the Console Project icon then fill in the rest of the information. After that those buttons and menu items will be enabled. | |
Re: Welcome to DaniWeb >>I don't want to get warning You The Mod's for wrong posting, too.(ATTN MOD's: If wrong Forum, please forgive me!). We are not that unforgiving, and we rarly infract newcomers because we know you may be confused at first. | |
Re: Populating the matrix with random numbers will almost never give you a semmatric matrix. In order to test your program you will have to hard-code the matrix with known values [URL="http://en.wikipedia.org/wiki/Symmetric_matrix"]like this[/URL] You have to create two nested loops to test each value, like this: [code] for(int i = 0; … | |
Re: Using VC++ 2008 Express I created a CLI Windows project, added a multi-line text box control, then coded the below function. Note that this may or may not be the best way to do it, but it works. I selected *.sys files instead of *.txt, but all you have to … | |
Re: If you want a random-access file where you can go to any record without reading all the intermediate records then the file must be in binary form with fixed-length records. Your class ClientData makes that pretty easy to implement because of its fixed-length data objects. You have to open the … | |
Re: See the [URL="http://msdn2.microsoft.com/en-us/library/system.io.directory.aspx"]examples here[/URL] I thik you want this: (see the :: scope operator) [icode]this->textBox1->Text = Directory::GetFiles(files3,"*.txt");[/icode] | |
Re: In DISPLAY CODE why do you insist on doing things the hard way (character by character)? [code] for(k=0; k<no; k++) { cout << arr[k] << setw(20) << "<< price[k] << "\n"; } [/code] In the second program where is variable [b]j[/b] declared? The loop on line 11 won't work because … | |
Re: >> would appreciate any help,thanks in advance Post the code you have written so far. If all you have to do is display the reversed string on the screen then create a loop that starts at the end of the string and decrement the loop counter until it reaches 0, … | |
Re: Why don't you use a grid control for that. There's [URL="http://www.codeproject.com/KB/miscctrl/flexgrid.aspx"]MSFlexGrid [/URL]that's installed along with your compiler and is pretty easy to use. You can also get other grid controls such as Ultimate Grid. Then there's a free [URL="http://www.codeproject.com/KB/miscctrl/gridctrl.aspx"]grid control[/URL] by Chris Maunder. I've used both FlexGrid and the Chris's … | |
Re: Are you using [b]packetStream[/b] object in another thread? If yes, you need to sinchronize access to that vector between the two threads. One way to do it is to create a semiphore. MS-Windows has several other ways to sinchronize the objects too. | |
Re: The <map> class might be useful here to map strings and function pointers | |
Re: handles up to make them easier and safer to remove. No one in his/her right mind would insert knives with the handles down. | |
Re: If I had all the money in the world -- I'd give it away to everyone that wants it. But I'd have to be very careful about that too because it could cause a surge in the inflation rate. If I gave everyone a million dollors (pounds, or whatever currency … | |
Re: Welcome to DaniWeb DJ. I'm sure you'll have lots of good stuff to contribute in many tech boards and Geek's Lounge. | |
Re: [QUOTE=jbennet;529068]it annoys me as im subscrive to over 100 pages worth of threads so i cant unsubscribe by ticking each page - unsubscribe all would be nice sorry for the hijack ;)[/QUOTE] Yes I agree -- I experience the same problem a couple years ago when I was subscribed to … | |
Re: From the hint of the name I think [b]getordervalue[/b] is a class method, so you need to call it like this: [icode]order1 = carArray[0].getordervalue();[/icode] And make sure the capitalization is correct too. | |
Re: Why even use a J loop? If you want to enter strings then just do this: [code] for(i=0; i<no; i++) cin>>arr[i]; [/code] You won't get spaces in the above, so if you need the spaces too then use getline() [code] for(i=0; i<no; i++) cin.getline(arr[i], sizeof(arr[i])); [/code] | |
Re: Welcome to DaniWeb. Hope to see you around in the Software Development board and probably Geek's Lounge. |
The End.