Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell32
Message
 
 
À
26/01/2011 17:39:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01497496
Message ID:
01497498
Vues:
73
>I have been using ShellExecute without difficulty in my development environment (using Windows Vista) which I declare in a function like this:
>
>
>DECLARE INTEGER ShellExecute IN shell32.dll INTEGER handle, STRING @ oper, ;
> STRING @ ifile, STRING @ iparam, STRING @ ipath, INTEGER showcmd
>
>
>The in the form I invoke the ShellExecute with variables like so:
>
> =ShellExecute(0,"open",lcFile,"",lcPath,1)
>
>I prepopulate the variables lcFile and lcPath appropriately. This works fine in my development machine. But when I installed the program on my portable computer using Windows 7 nothing happens. No error, no message. Nothing. Why doesn't this work? What am I missing?
>
>I checked the portable computer in the Windows subdirectory and found Shell32.dll as I expected. I am stumped. I'd appreciate help.

What happens if you double click on this file in Windows Explorer?

Have you checked what does ShellExecute return (it may return an error code)? Check Open any document FAQ #8134
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform