General information
Category:
Coding, syntax & commands
Title:
Creating the exe with one form and a button?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only