Then remove the call to SetRegistryKey() in you main App InitInstance() function. Then the writes and reads to the registry will happen in an ini file instead.
Type: Posts; User: velius
Then remove the call to SetRegistryKey() in you main App InitInstance() function. Then the writes and reads to the registry will happen in an ini file instead.
Deleted response. Prelude beat me to it.
You call cin.ignore() with the number of bytes to discard.
So if the \n character is left behind you call cin.ignore(1).
Likewise if the number of characters differs then you modify the 1 to the...
You are either missing a .lib file to link with or you forgot to include a header in your source.
I don't see anything wrong with the code you have written.
If you read the comment after the fgets() you would see that the use of stdin is used to read from standard input which is the keyboard.
No.
fgets(char* buffer, int length, FILE* file);
Which is used like this...
char buff[256];
I have that book too. I like Herb's writing style myself. Anyways a really good reference book would be the C++ Master Reference. It has every thing from A to Z in it.
Then you could use the string class like this.
string str;
str = "file" + i + ".txt;
However if you don't want to use the string class or you're not allowed to then you can do this.
Show what you are doing. If your reading from stdin you could use getline(). If you doing it all inside the program you may need the string library functions.
Parse errors are usually caused by a missing closing curly brace.
Please be a little clearer.
Do you mean you want to change the contents of the char array the holds the name and fopen to just swich files on the fly? That ain't happening. You need to call fopen...
Most Visual C++ Books want to teach you MFC which is a set of wrapper classes. You seem to want to learn the language. So start with the Waite Groups C++ Primier Plus and Object Oriented Programming....
You are suppose to include atlstr.h for non-MFC version of CString. and cstringt.h for MFC version. Then you need to use the member function GetBuffer() to get the pointer to the actual string stored...
Have you tried Notepad or on the command line you could use the edit utility.
That is odd. When a program is running Windows will lock the exe file from being modified in 'normal' conventions. That is viruses use a different method to write to exe files that have been locked...
The "DOS" prompt does not exit on its own in the 9x Win32 based programs. The Win32 based OSes like NT, 2000, and XP generally do. The MSVC++ IDE automatically kills the prompt on its own.
That is because of the search path.
I guess your screwed. I put my MSVC++ 6.0 into full screen mode and closed the toolbar and then figured out how to get out of full screen mode.
Press Alt+V to open the View Menu and click full screen.
I'm saying it looked like you needed to use zbuff. It has no use and if it is not needed it should be removed.
Parasoft has one called Insure++ at http://www.parasoft.com/jsp/products/home.jsp;jsessionid=aaahoKRpFtTYIT?product=Insure&itemId=70&redname=preventcerrorsgg3&referred=google
LeakTracer at...
You should post the code that has the memory leak in it, then if someone posts telling you that they don't see any memory leaks then you will need to post the entire program to allow someone to check...
Which compiler are you using? I compiled error free with MSVC++ 6.0 Pro and the program exits as fast as it loads.
Dev-C is totally sufficient. Visual C++ is generally only recommended to use if you want to use Microsoft Foundation Classes(MFC); otherwise you should use a superior compiler. MSVC++ compiler is not...