Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating the exe with one form and a button?
Message
De
10/11/2003 10:31:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Creating the exe with one form and a button?
Divers
Thread ID:
00848305
Message ID:
00848305
Vues:
54
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
Fil
Voir

Click here to load this message in the networking platform