Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shellexecute and Windows 8
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01598440
Message ID:
01598444
Vues:
76
>>>Hi Gang!
>>>
>>>Our company is now upgrading our clients to Windows 8.
>>>
>>>Does SHELLEXECUTE work in Windows 8 ?? One of our programmers is testing FoxPro code that uses Shellexecute, and it does not execute any more.
>>>
>>>Thanks!
>>
>>What is the exact code and the declaration? I believe ShellExecute works fine in Windows 8.
>
>Here is the code.....
>
>
>local lcCmd, lcParams, lcPathReg
>
>lcPathReg = “c:\pharamcy\”
>lcCmd = "REGSVR32"
>
>lcParams = " /s /u "  + lcPathReg
>
>
>DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
>        INTEGER lnHWnd, ;
>        STRING lcAction, ;   
>        STRING lcTarget, ;
>        STRING lcExeParams, ;
>        STRING lcDefDir, ;
>        INTEGER lnShowWindow
>
>lnResult = ShellExecute( 0, 'open', lcCmd, lcParams, "", 1 )
>
>
This looks more like a rights issue, not Shellexecute. Are you trying to register (or unregister) something? Would the same command work if called from cmd? Also, the quotes on the path look funny and why it is just path only?
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