ExitProcess and exit()
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
ExitProcess
is part of the Win32 API - It's the low level function you call to exit a process. There is a more vicious version calledTerminateProcess
.exit
is a CRT (C Runtime Library) function; every C/C++ compiler will have this function. On Windows it will be implemented in terms onExitProcess
but it will do some "house work" before hand. For example using the CRT functionatexit
you can register a function to be called when the process exits - If you useExitProcess
you will short-circuit the CRT code which calls them. My advice would be that if you're not sure of the difference play it safe and useexit
. Steve