Terminating Programm ? how to do?

Started by
10 comments, last by uavfun 19 years, 5 months ago
k ....just realized my vectors were bullshit
Advertisement
Quote:Original post by darookie
I guess you mean if the return code is something other than zero. However, it's not important as the return code is not processed by the OS, only optionally by a user process that started the app.
There's nothing 'magic' about these codes. They are just some archaic status information intentionally introduced for shell scripts and batch programs to be able to check the operation status of any called program.


Hmm I said it awkwardly... let me put it like this. PostQuitMessage(some_number) works for any number. Technically you are supposed to return that number from WinMain but really you can just ignore it. So you don't need to do PostQuitMessage(WM_QUIT) to make it quit, in fact PostQuitMessage(WM_CREATE) works just as well :)

This topic is closed to new replies.

Advertisement