Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
16-Bit API to start program using associated file...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00217293
Message ID:
00217330
Vues:
18
I use this in Win95, I don't know if it works on NT or Win 3.11

FUNCTION RunFile(cFile, cPath, cAction, ShowWindow)
PRIVATE X, Main_hWnd, cur_window
&& ShowWindow = 2 && Minimized
&& ShowWindow = 3 && Maximized
&& ShowWindow = 10 && Normal
SET LIBRARY TO HOME() + ".\FOXTOOLS.FLL"
* Returns Handle of Main VFP Window
Main_hWnd = MainHWND()
* Returns Current Window
cur_window = _WhToHwnd(_WOnTop())

DECLARE ShellExecute IN "Shell32.dll" LONG, String, String, String, String, LONG
X = ShellExecute(cur_window, cAction, cFile, "", cPath, ShowWindow)
CLEAR DLLS
RETURN X
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform