Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute WaitForSingleObject IsRunning(GeorgeTasker)
Message
 
 
À
19/03/2004 12:00:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00887963
Message ID:
00888218
Vues:
38
This message has been marked as a message which has helped to the initial question of the thread.
Tracy,

Along the lines of Cetin's reply, another way to turn this problem on it's head. At the start of your app you can delete whatever .xfdf or .pdf files that happen to be in the directory you use.

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform