Re: [GD-Windows] Terminating a program
Brought to you by:
vexxed72
From: <epa...@ko...> - 2005-07-31 17:02:03
|
brian sharon wrote: > Sounds like you might be better off not using WM_CLOSE, since the OS is going to complain if you ignore it for too long. But you have plenty of other options if you want to handle communications between two apps you control. Easiest thing is to use RegisterWindowMessage() to get a unique message value for your own custom quit message, and then the child application could post WM_CLOSE to itself whenever it receives that custom quit message from the launcher app. > Results from this seem very promising. I did add TerminateProcess as the fallback, but so far (after doing one fix to the graphical program), I have not yet seen it triggered. (I have previously terminated programs on this setup (Nvidia + WindowsXP) and I have not noticed any ill effects) Thanks for your and Jon's comments Eero PS. I first sent this using wrong address, moderator please kill that message... |