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.
if (KEYDOWN(VK_ESCAPE)){ PostQuitMessage(0); return;}