Information générale
Catégorie:
COM/DCOM et 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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement