Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shellexecute and parameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00710928
Message ID:
00710947
Vues:
12
>I have the need to call another VFP EXE from within a program. Presently we check to see if the EXE is running. If not, then use the SHELLEXECUTE to pass parameters and run the EXE.
>If it is running, the EXE is brought to the front in a normalized state. Question I have is how can I best pass a new parameter to the EXE when it is already running?

Hi Ronald
VFP Exes get their "command arguments" only on enter (as parameters of the main procedure, or the init event on the startup form). So there's no such thing as "pass a new parameter while running"... unless you use DDE (yeah, the old "obsolet" protocol) setting your running app as "DDE server". If you wish to do so take a look at the DDExxxxx functions.

Maybe it would be better to implement a COM component in VFP7, and call it with CREATEOBJECT.. or communicate with messages (MSMQ or file based) between your VFP applications.

HTH and bye
Jose.
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform