General information
Category:
COM/DCOM and OLE Automation
>I have a VFP program that uses Automation to run word.
>
>I know how to quit word, but how can I verify that the quit really worked. I'm especially concerned about a situation where quitting causes word to post a dialog which is hung waiting for an answer (if the word app is hiding).
I've got some code that determines whether or not Word is open...unfortunately, I can't get to it until later today. It uses the FindWindow Win32 API function that finds the first top level window based on class name or window name. If Word is still open, you can use GetObject() to attach to it and shut it down.
This may be enough information to get you started...I won't be able to get to the code until after 4 pm EST. I'll post it then.
- della Martin
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only