|
-
Mar 14th, 2006, 07:35 AM
#1
Know when a Console app is terminated?
Is there an event or something I could catch that would tell me that my console app is being terminated? Like by Windows being shutdown, etc.
Thanks
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 14th, 2006, 10:07 AM
#2
Re: Know when a Console app is terminated?
Console applications don't have events or message queues, and I doubt you could even subclass them.
-
Mar 14th, 2006, 10:12 AM
#3
Re: Know when a Console app is terminated?
-
Mar 14th, 2006, 12:27 PM
#4
Re: Know when a Console app is terminated?
Does this event get raised after the window has been closed or after the call has been made for closing it?
-
Mar 14th, 2006, 12:37 PM
#5
Re: Know when a Console app is terminated?
Could the console be re-written as a win service?
-
Mar 14th, 2006, 01:21 PM
#6
Re: Know when a Console app is terminated?
You could run the console application from within your program in a process, then when that process ends, do whatever you want...
You can check in my sig for a codebank example on automating the command prompt...
-
Mar 14th, 2006, 08:19 PM
#7
Re: Know when a Console app is terminated?
 Originally Posted by kleinma
Looks like it, but it doesn't seem to work. Too be continued...
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|