How to Trap Close Application in a Console Application
-
Hi Friends, I m having a simple win32 console Application. It is running in a infinite loop, there is only one option to close application by clicking the close button in console. I want to trap this event when closing application. Please suggest the best solution. Thanks
Pankaj Jain
-
Hi Friends, I m having a simple win32 console Application. It is running in a infinite loop, there is only one option to close application by clicking the close button in console. I want to trap this event when closing application. Please suggest the best solution. Thanks
Pankaj Jain
this article http://www.codeproject.com/win32/console_event_handling.asp[^] shows how to trap ctrl-c, ctrl-break etc from a console program - is that what you need ? 'g'
-
this article http://www.codeproject.com/win32/console_event_handling.asp[^] shows how to trap ctrl-c, ctrl-break etc from a console program - is that what you need ? 'g'
Thanks! I m looking.............
Pankaj Jain