Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
16-Bit API to start program using associated file...
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00217293
Message ID:
00217330
Views:
20
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
Previous
Reply
Map
View

Click here to load this message in the networking platform