Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6: READ EVENTS with two VFP6 .EXEs running
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00189741
Message ID:
00189897
Vues:
12
>Ed,
>Would WinExec() do as well as RUN? And would there be any advantages/disadvantages?
>

WinExec() would work; it really ought to be replaced with calls to CreateProcess(), since WinExec() still exists only for backwards compatibility with Win16. There's at least one advantage to WinExec() or CreateProcess() in that you can control the ShowWindow state of the secondary process you launch; CreateProcess(0 offers considerably more control, and a means of tracking the launched application, since it returns a structure that contains the process id and process handle of the child process.

>Inquiring minds want to know :-)
>Barbara
>
>>If you want to run both .EXEs independently of each other, you'd have to launch the second .EXE using the RUN command rather than with DO.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform