Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make sure Word is gone
Message
 
 
To
20/11/2000 22:47:48
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00443950
Message ID:
00444008
Views:
15
>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
Map
View

Click here to load this message in the networking platform