Search:

Type: Posts; User: Elysia

Search: Search took 0.19 seconds.

  1. Replies
    22
    Views
    16,722

    The fact that it can produce a buffer overflow...

    The fact that it can produce a buffer overflow and that you do no checks to make sure it does not is enough to make it dangerous. Oversizing buffers is not a solution. It's a hack and a workaround.
    ...
  2. Replies
    22
    Views
    16,722

    The tutorial is garbage. Besides, I would...

    The tutorial is garbage.
    Besides, I would recommend you get a C++ GUI framework such as Qt instead of doing pure Win32 programming. It's easier and it's faster.

    Some advice:
    - Don't use new when...
  3. Replies
    22
    Views
    16,722

    main is not used in Windows programs. Now that I...

    main is not used in Windows programs.
    Now that I think about it, why are you using operator new here? It seems superfluous. You should probably remove it.
  4. Replies
    22
    Views
    16,722

    You should, if possible, use std::string for all...

    You should, if possible, use std::string for all your strings, not char arrays.
  5. Replies
    22
    Views
    16,722

    Because it's static - there is only one instance...

    Because it's static - there is only one instance of the variable in the program.
Results 1 to 5 of 5