Search:

Type: Posts; User: oogabooga

Search: Search took 0.04 seconds.

  1. Thread: memory leak

    by oogabooga
    Replies
    8
    Views
    2,930

    I didn't say that you shouldn't use it; you have...

    I didn't say that you shouldn't use it; you have to use it. I said that you shouldn't call it if you've handled the message yourself. Notice that Petzold's example returns if it handles a message and...
  2. Thread: memory leak

    by oogabooga
    Replies
    8
    Views
    2,930

    Did you try turning unicode off? What happened? ...

    Did you try turning unicode off? What happened?

    To continue using unicode you have two options.
    1. continue using readdir and convert your strings
    2. use the Windows-specific functions...
  3. Thread: memory leak

    by oogabooga
    Replies
    8
    Views
    2,930

    You're probably using unicode, but the readdir...

    You're probably using unicode, but the readdir function doesn't.

    One way to solve this is to turn off unicode:
    * right-click on the name of your project in the "solution explorer" (at the left)...
  4. Thread: memory leak

    by oogabooga
    Replies
    8
    Views
    2,930

    Your WndProc is badly designed. Firstly, you...

    Your WndProc is badly designed.

    Firstly, you should not be calling DefWindowProc if you have handled the message yourself. It's only for messages that you do not handle.

    Secondly, and here's...
Results 1 to 4 of 4