Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement