Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incorporating an external EXE into my VFP EXE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00159240
Message ID:
00159469
Vues:
30
You might try the ShellExecute() API function:
DECLARE INTEGER ShellExecute IN Shell32 ;
     INTEGER @HWND,;
     STRING @lpOperation,;
     STRING @lpFile,;
     STRING @lpParameters,;
     STRING @lpDirectory,;
     INTEGER @nShowCmd

hWind = 0
lcOperation = "OPEN"
lcFile = "HH.EXE"
lcParameter = "" 
lcDirectory = "C:\WINDOWS"  && whatever directory -- may be blank -- ""
liShow = 0
lnResult = ;
    ShellExecute(@hWind,@lcOperation,@lcFile,@lcParameter,@lcDirectory,liShow)
clear DLLS
>Hi Mark -
>
>I already tried that, and it does let me add it, but where do you think I should add it to? I tried applications, and it won't compile, saying the EXE isn't a VFP EXE. So I added it to Other Files, which seemed to work when I compiled, but then errors at runtime ("Run Command Failed"). Would I still run it with the RUN command, now that it's compiled in?
>
>TIA -
> ellen
>
>
>
>>Hi, Ellen! You could try adding the EXE to your project, but I think you will get an excluded symbol next to it that you will not be able to remove.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform