Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem using ShellExecute under Windows Server Enterpri
Message
De
30/06/2009 03:57:24
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Divers
Thread ID:
01409010
Message ID:
01409290
Vues:
47
Hi Naomi.

Thanks, but neither of those point me in a useful direction. I already know how to call ShellExecute and knowing the version of Windows doesn't really help me since I can't jsut say use the Edit verb if it's vista since that won't necessarily be the default verb on
any particular machine.

Ian Simcock.

>Ian,
>
>See this sample message #1408731
>
>See also http://fox.wikis.com/wc.dll?Wiki~GetWindowsVersion
>
>>Greetings all.
>>
>>I'm hoping that someone has run into this before. I've been using ShellExecute to open random documents without any problems on older operating systems, but on our Windows Server Enterprise machine (and I'm guessing Vista from what I'm seeing) it's failing oddly.
>>
>>I'm passing a nothing as the command verb which is supposed to make it execute the default verb. For a number of tested files (.Doc, .Txt. PDF, .BMP) it works as expected. On this machine though I get an error message when I try and open a JPEG file. The message is from the Photo Gallery Viewer and it's complaining that I'm not allowed to print without the Desktop Experience Feature. If I enter the name of a JPEG file into a command shell I get the same error, but if I double click in Explorer it executes the default verb, which is edit.
>>
>>I then tried to get the default verb for a file and specify that, but all the documentation I could fine was sending me to registry keys that don't exist. I'm not sure if the problem is the OS, JPEG files being handled differently thatn normal files or both, but it's got me stumped.
>>
>>Can anyone tell me either -
>>1) Why ShellExecute is not using the Default Verb , or
>>2) How to determine the Default Verb Sever Enterprise / Vista?
>>
>>Thanks,
>>Ian Simcock.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform