Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shellexecute error
Message
 
 
À
13/11/2007 09:45:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01268567
Message ID:
01268836
Vues:
16
>Yes, the user can double click on the file and it launches fine. Also they can run it with windows run.

There's no reason to pass parameters by reference to ShellExecute. when you do, you've to add CHR(0) to the end of each string. VFP takes care of that when you pass parameters by value. Also try to use default action instead of 'open'.
DECLARE INTEGER ShellExecute IN shell32; 
    INTEGER hwnd, STRING  lpOperation,STRING  lpFile, ; 
    STRING  lpParameters, STRING  lpDirectory, INTEGER nShowCmd 

...
lcop = ""
...
lnresult = ShellExecute(0, lcop, lcFilename, lcparms, lcpath, lnWindowState)
...
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform