Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling another EXE
Message
De
04/03/2004 15:42:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00883248
Message ID:
00883254
Vues:
8
>Can you consume another NON FOXPRO EXE /w Paramaters using FoxPro or just run it using FoxPro without it displaying.

>Can you consume another NON FOXPRO EXE /w Paramaters using FoxPro or just run it using FoxPro without it displaying.

Yes. There are more than one way to do this. My favorite is using the Shell32.dll. There are threads here that someone might be able to point it to you. Note that I removed the validation codes to make sure that the parameters received are valid.
function ShellExec(tcFileName,tcParameters,tcWorkDir,tcOperation)
   declare integer ShellExecute ;
      in SHELL32.dll ;
      integer nWinHandle,;
      string cOperation,;
      string cFileName,;
      string cParameters,;
      string cDirectory,;
      integer nShowWindow
   return ShellExecute(0,lcOperation,lcFileName,lcParameters,lcWorkDir,1)
ramil
~~ learning to stand still
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform