Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you use ShellExecute()
Message
 
 
À
14/09/1998 10:50:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00136184
Message ID:
00136193
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform