(VFP) - How To Run Exe File and include them to your Project
*******************************
** Author : Leosan **
** Date Publish : 29/01/2005 **
*******************************
* Examples how to run Windows Calculator
*
declare long ShellExecute in "shell32.dll" long hwnd, string lpszOp,string lpszFile, string lpszParams,string lpszDir, long nShowCmd
declare long GetDesktopWindow in"win32api"
local hDCScreen
hDCScreen = GetDesktopWindow()
ShellExecute( hDCScreen, "open", "calc.exe", "", "d:\", 1)
** Author : Leosan **
** Date Publish : 29/01/2005 **
*******************************
* Examples how to run Windows Calculator
*
declare long ShellExecute in "shell32.dll" long hwnd, string lpszOp,string lpszFile, string lpszParams,string lpszDir, long nShowCmd
declare long GetDesktopWindow in"win32api"
local hDCScreen
hDCScreen = GetDesktopWindow()
ShellExecute( hDCScreen, "open", "calc.exe", "", "d:\", 1)
Comments