Archived

This topic is now archived and is closed to further replies.

This topic is 4984 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What''s the code to exit your program? I thought it was PostQuitMessage(0)? because when by example I press the text "exit" in my menu I do a PostQuitMessage(0) and then in my message handler under the case WM_DESTROY I do all my DX cleanup, but it doesn''t clean my DX up? I know this because I just implented my logging system. When I press alt-F4 or the X of the window then it does all the DX cleanup.

Share this post


Link to post
Share on other sites
Just a though: PostQuitMessage only sends the WM_QUIT message. You should probably call DestroyWindow at some point if you want to clean up DX there.

Share this post


Link to post
Share on other sites