Very Quick Newbie MSVC++ Question
How do I tell an MSVC++ Console App to stop running? I''m currently using the abort() function, but that does an abnormal program termination. Is there another command that just tells the program it''s done running and closes?
Thanks!
~~~~~~~~~~~
Chris Vogel
~~~~~~~~~~~
exit(0);
Might work, I can''t really remember right now, so please don''t flame me if im wrong
----------------------------
I HATE COLLISION DETECTION!!
Might work, I can''t really remember right now, so please don''t flame me if im wrong
----------------------------
I HATE COLLISION DETECTION!!
Using return(0); within main would obviously work, but I assumed he needs to be able to close the app from elsewhere
exit(0); will achieve the same as his abort() command but will be, er, cleaner...
----------------------------
I HATE COLLISION DETECTION!!
exit(0); will achieve the same as his abort() command but will be, er, cleaner...
----------------------------
I HATE COLLISION DETECTION!!
And if you want to delay it a bit before exiting(might be too fast), you can use _sleep(#ofsec).
Wachar''s Eternity <-<-<-<-<- Me own site!
Wachar''s Eternity <-<-<-<-<- Me own site!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement