Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aboout run a program using foxpro.
Message
From
25/11/1999 12:55:45
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00295595
Message ID:
00295601
Views:
22
>If the program you are trying to execute is a Win32 executable then you could use the Win32 API call "WinExec":
>
>UINT WinExec(
> LPCSTR lpCmdLine, // address of command line
> UINT uCmdShow // window style for new application
>);
>
>In VFP you could try something like this:
>
>DECLARE INTEGER WinExec IN win32api STRING, INT
>
>.
>.
>.
>
>WinExec("c:\myfile.exe")
>
>Their are other alternatives though and I am unclear wether or not the application is a DOS app?

It's a dos program ,but I will have a try ,thanx
I'm a beginner of Visual Foxpro 5.0 ,thanx for help ^^
Previous
Reply
Map
View

Click here to load this message in the networking platform