missing quit event

J

John B

I am developing an Atl control that launches user selected Apps using
CoCreateInstance & IDispatch calls. Once the app is launched, the user may
or may not close the App before closing the host application that owns the
Atl control. My question concerns the case when the user closes the opened
App. I need to know when this happens. Some apps e.g. Word, Visio support a
Quit event that I can use. Others, e.g. Excel, on the other hand, do not.
To determine if Excel is running, I could set a timer and check to see if the
pointer I have saved is still valid but while this would work, it is a rather
ugly way to solve the problem. It there a better way?
 

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