Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid black screen on run command
Message
De
26/02/2017 14:54:59
 
 
À
26/02/2017 13:50:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01648531
Message ID:
01648550
Vues:
46
>>This is same as RUN /N7
>>
>>both does not wait for process completion?
>
>Honestly, I haven't used Run for many years, so I don't remember. Try it, it will open the program you specify as a normal program, without affecting VFP.

I'm using Shellexecute to show pdf and excel files. It simply runs application in parallel.
I need to get back signature created by OpenSsl .
Show I use
do while
  if file('signature.txt')
    exit
    endif
  enddo
to wait for completion ? I'm asking to better solution, just like RUN waits. If openssl.exe does not return signature, applications hangs.

WinAPI has CreateProcess and WaitForSingleObject for this, maybe they can called from VFP.
However this requires returning object in memory from CreateProcess
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform