Close runtime window of C++

hey guys i need to close the runtime window of C++..i mean i need the equivalent code of "end" of VB6 to terminate the C++ runtime without clicking its close button..
thank you..
exit()? Or return from the main function?
Last edited on
Just like in VB6, it is an awful practice to terminate programs this way. Don't go down this path. A program naturally ends when all of the threads end. If you are talking about MS Windows, you can post or send a WM_CLOSE message to the main window; the window procedure should process this (explicitly or via the default procedure) and call PostQuitMessage(). That should break the message pump loop and exit the program.
Topic archived. No new replies allowed.