DDraw app won't quit!!!

Started by
9 comments, last by arwez 23 years, 9 months ago
All you need to change is in Game_Main where it says if (KEYDOWN(VK_ESCAPE). Instead of using SendMessage(), do something like this:
    if (KEYDOWN(VK_ESCAPE)){    PostQuitMessage(0);    return;}    


Then it''ll jump out of the while(TRUE) loop, call Game_Shutdown(), and kill the window. That''s the only thing that looks different from my code. Peace Out.

This topic is closed to new replies.

Advertisement