Search:

Type: Posts; User: velius

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Then remove the call to SetRegistryKey() in you...

    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.
  2. Replies
    3
    Views
    1,347

    Deleted response. Prelude beat me to it.

    Deleted response. Prelude beat me to it.
  3. Replies
    10
    Views
    4,283

    You call cin.ignore() with the number of bytes to...

    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...
  4. Replies
    11
    Views
    7,516

    You are either missing a .lib file to link with...

    You are either missing a .lib file to link with or you forgot to include a header in your source.
  5. Replies
    30
    Views
    3,744

    I don't see anything wrong with the code you have...

    I don't see anything wrong with the code you have written.
  6. Replies
    30
    Views
    3,744

    If you read the comment after the fgets() you...

    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.
  7. Replies
    30
    Views
    3,744

    No. fgets(char* buffer, int length, FILE*...

    No.


    fgets(char* buffer, int length, FILE* file);

    Which is used like this...


    char buff[256];
  8. Replies
    10
    Views
    3,164

    I have that book too. I like Herb's writing style...

    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.
  9. Replies
    4
    Views
    7,997

    Then you could use the string class like this. ...

    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.
  10. Replies
    30
    Views
    3,744

    Show what you are doing. If your reading from...

    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.
  11. Thread: Parse error

    by velius
    Replies
    3
    Views
    8,715

    Parse errors are usually caused by a missing...

    Parse errors are usually caused by a missing closing curly brace.
  12. Replies
    4
    Views
    7,997

    Please be a little clearer. Do you mean you want...

    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...
  13. Replies
    10
    Views
    3,164

    Most Visual C++ Books want to teach you MFC which...

    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....
  14. Thread: CString

    by velius
    Replies
    3
    Views
    1,327

    You are suppose to include atlstr.h for non-MFC...

    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...
  15. Replies
    4
    Views
    1,949

    Have you tried Notepad or on the command line you...

    Have you tried Notepad or on the command line you could use the edit utility.
  16. Replies
    4
    Views
    1,570

    That is odd. When a program is running Windows...

    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...
  17. Replies
    15
    Views
    3,204

    The "DOS" prompt does not exit on its own in the...

    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.
  18. Replies
    1
    Views
    5,911

    That is because of the search path.

    That is because of the search path.
  19. Thread: Execute Problem

    by velius
    Replies
    4
    Views
    1,417

    I guess your screwed. I put my MSVC++ 6.0 into...

    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.
  20. Thread: Execute Problem

    by velius
    Replies
    4
    Views
    1,417

    Press Alt+V to open the View Menu and click full...

    Press Alt+V to open the View Menu and click full screen.
  21. Replies
    7
    Views
    2,368

    I'm saying it looked like you needed to use...

    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.
  22. Replies
    7
    Views
    2,368

    Parasoft has one called Insure++ at...

    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...
  23. Replies
    7
    Views
    2,368

    You should post the code that has the memory leak...

    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...
  24. Replies
    5
    Views
    1,056

    Which compiler are you using? I compiled error...

    Which compiler are you using? I compiled error free with MSVC++ 6.0 Pro and the program exits as fast as it loads.
  25. Replies
    8
    Views
    1,198

    Dev-C is totally sufficient. Visual C++ is...

    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...
Results 1 to 25 of 219
Page 1 of 9 1 2 3 4