Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you use ShellExecute()
Message
 
 
To
14/09/1998 10:50:28
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00136184
Message ID:
00136193
Views:
37
>I tried Delaring the command with declare ShellExecute in Win32s16 int, string, string, string, string
>and then calling it but keep getting an error something like "Invalid entry point". Just what is the syntax for calling this function?
>
Ashley,

This is what I did for using HTML help in VFP 5:
On Key Label F1 do HtmlHelp

procedure HtmlHelp
*
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 = "MyHelp.CHM" 
lcDirectory = "C:\WINDOWS"
liShow = 0
lnResult = ;
   ShellExecute(@hWind,@lcOperation,@lcFile,@lcParameter,@lcDirectory,liShow)
clear DLLS
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform