Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating the exe with one form and a button?
Message
From
10/11/2003 10:31:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Creating the exe with one form and a button?
Miscellaneous
Thread ID:
00848305
Message ID:
00848305
Views:
53
I am creating an exe with one form on it i am placing only one button.

I am calling the scanner application when the button is clicked.

The problem is when the user is doubleclicking the exe icon. It is doing nothing.
Do i have to add any programs or runtime libraries when i create the exe in VFP.

The following code i am putting inside the button click:
Please help:
*******************************************************
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin


if file("C:\ScanTool\test1.tif") then
messagebox("couldn't copy the file, already exists.")
else
cFileName = "C:\ScanTool\twaincom.exe"

*cDir = "E:\Documentimaging\Newtoolfromgermany\"
cDir = "C:\ScanTool\"


cAction = "open"



cParams= "C:\ScanTool\test.tiff -n -o -h -paperformatusletter -feederon -monochrome -r

200 -multipagetiff"


ShellExecute(0,"Open",cFileName,cParams,cDir,1)
clear dlls
endif

**************************************************************
Thank you very much
Next
Reply
Map
View

Click here to load this message in the networking platform