Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make sure Word is gone
Message
 
À
20/11/2000 22:47:48
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00443950
Message ID:
00444008
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform