Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid black screen on run command
Message
From
26/02/2017 14:54:59
 
 
To
26/02/2017 13:50:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01648531
Message ID:
01648550
Views:
47
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform