Original Post
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.