Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exit function ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
what function would i use to exit an application completely??
 
try this one
// Exi the application
OnOK();

good luck!
rb2000z

 
you could even try

//exit program
exit(1);


:)
stefee
 
Hi

An other good way to do it (that is, using Windows message) is the following:

// Kill app

AfxGetMainWnd()->PostMessage( WM_CLOSE);

Thierry
Thierry.Marneffe@swing.be
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top