Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incorporating an external EXE into my VFP EXE
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00159240
Message ID:
00159469
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform