Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to use WinExec
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00092940
Message ID:
00093058
Vues:
36
Tim,

If the app is modal how about just using this launcher from VFP?

do while .t.
do TheRealApp
enddo

Or you could create a timer object that fired once a minute and checked for the existence of the app window with FindWindow() and if it wasn't there launch it again.

>DO WHILE MoreToDo
> CreateProcess(...)
> WaitForSingleObject(Process ID, -1)
> CloseHandle(Process ID)
> CloseHandle(Thread ID)
>ENDDO
>
>When I tried this, it locked up FoxPro.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform