Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute WaitForSingleObject IsRunning(GeorgeTasker)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00887963
Message ID:
00887997
Vues:
27
>I am having problems using ShellExecute, IsRunning, and WaitforsingleObject together. I am trying to start Adobe Acrobat Reader using the associated .pdf's .xfdf file. Adobe Acrobat Reader opens up fine and uses the .xfdf file as it should. However, I need to stop processing in my app until Adobe Acrobat Reader is closed so I can then delete the .pdf and .xfdf files. I cannot use createprocess because createprocess only works with executables. The handle returned by isrunning is never found using waitforsingleobject. Any idea how can I convert the value returned by isrunning() to a value required by waitforsingleobject?
>
>Here is my code:

Tracy,

The value returned by my work is not the value type that WaitForSingleObject() requires. You'll need CreateProcess(). Ed Rauh's API_APPRUN stuff uses this. You might want to look at that for ideas on how to implement what you want.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform