Terminate an application

  • Thread starter Thread starter Claude Gagnon
  • Start date Start date
C

Claude Gagnon

Hi,
I program with Visual C++ .NET 2003.

I have an application that I want to quit if a specific
date is passed. (the user will not choose Quit in the menu)

I want to terminate the application in the OnClose member
function of my CApplicationView class.

I have tried with various methods like
PostMessage(WM_DESTROY, 0, 0) or PostQuitMessage(0) without success.

Does anybody have suggestions ?

Thanks,

Claude
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top