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?
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?