Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a VFP.EXE using ShellExecute
Message
 
 
À
13/11/2004 19:51:39
Tim Muller
Innovative Solutions, Inc.
West New York, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00961234
Message ID:
00961236
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>Using ShellExecute I am successfully calling a VFP .EXE that I wrote from another of my VFP EXEs. How do I pass a parameter (2 really) to a VFP EXE using ShellExecute?

Hi Tim,

You pass them as 4th parameter of ShellExecute(). See also How to pass parameters to VFP EXE FAQ #17861. For example,
cParams = ["A B C" 2]
? ShellExecute(0, "", "H:\temp\test.exe", cParams,"",1)
will pass two parameters into EXE. The first one, string "A B C" and the second one, string "2".
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform