Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters from a exe or dll file
Message
De
15/10/2004 02:55:08
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
 
 
À
13/10/2004 10:19:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00951054
Message ID:
00951642
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Have a go with this.

Create a VFP project and add this prog as the main (and only) prog.

PARAMETERS p_1, p_2

IF TYPE("p_1") = "C" AND !EMPTY(p_1)
WAIT WINDOW "Param 1 is " + p_1
ELSE
WAIT WINDOW "Param 1 is not defined"
ENDIF

IF TYPE("p_2") = "C" AND !EMPTY(p_2)
WAIT WINDOW "Param 2 is " + p_2
ELSE
WAIT WINDOW "Param 2 is not defined"
ENDIF

RETURN

Build the project as an EXE. Run the exe and you will get 2 wait windows ;
WAIT WINDOW "Param 1 is not defined" &
WAIT WINDOW "Param 2 is not defined"

Then create a shortcut to the exe and in the target line of the properties have (your path)\parm.exe This That

Run the exe form the shortcut and you should get ;
WAIT WINDOW "Param 1 is This" &
WAIT WINDOW "Param 2 is That"

Hope this makes sense and is actually what you want.

Jon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform