Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make sure Word is gone
Message
 
À
21/11/2000 18:31:05
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00443950
Message ID:
00444456
Vues:
13
>
>>Have you tried a Windows API call, something like this:
>>
>>DECLARE INTEGER FindWindow IN Win32API ;
>> String lpClassName, String lpWindowName
>
>[snippet snipped]

>
>Looks like what Della M was talking about in another subthread. I'll try this.
>
>I'm curious as to whether I need the word application object to be visible in order to find it with the API call.

Nope, it will find it even if it's invisible. You probably already know that by now! <g>.

>
>I'm also curious as to what happens if another copy of word is running (was started independently from my app). People may run my app while they have word open for other reasons...I wouldn't want them thinking of me as an unsavory character for dumping the last three hours of their word work (though it would give me a chance to lecture them about periodically saving their work!! ;-)

It should pick it up, even if they started it independently of your application, although you won't have an object reference to it.

While debugging my apps, I frequently would get 3-4 "unkilled" instances of Word running that I'd have to go into Task Manager to shut down.

I hope this helps. I know it's not a total solution, but it should point you in the right direction.
"Problems cannot be solved at the same level of awareness that created them." - Albert Einstein

Bruce Allen
NTX Data
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform