Ctrl + C

A

Alamelu

For a command line application,how to handle ctrl + c, so as to do clean up
and then close the application.

I dont want the application to close abruptly on giving ctrl+ c

Regards,
Alamelu
 
D

David Lowndes

For a command line application,how to handle ctrl + c, so as to do clean up
and then close the application.

Have a look at SetConsoleCtrlHandler.

Dave
 

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

Top