Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shellexecute
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
01130727
Message ID:
01130757
Views:
19
Thank you, I'll check as I'll go to my customer. I do not have Win2000 PC here.
I'll let you know
Alessio

>Hi Alession,
>
>Asociated operations are stored in registry. API functions ShellOpen(), ShellOpenEx() etc. read these informations from registry.
>Operations can be Open, Edit, New, Print... etc. Check in Explorere how asoc. operations are in shortcut menu for the file (Open, Edit).
>
>I mean so Edit is not defined or is defined bad in registry for application Paint.Picture
>
>MartinJ
>
>>Hi Martin, thanks for your reply but I cannot understand.
>>What should I find in the registry ?
>>In my specific case the file ext is Jpg and it should be open with MSPAINT...
>>Thank you
>>Alessio
>>>Hi Alessio,
>>>
>>>Check if declare command edit in registry for extension's application...
>>>
>>>
>>>
>>>HKEY_CLASSES_ROOT
>>> .ext
>>>  (Default) = ProgID.ext.1
>>>
>>>
>>>HKEY_CLASSES_ROOT
>>>
>>>
>>>HKEY_CLASSES_ROOT
>>> ProgID.ext.1
>>>  shell
>>>   edit
>>>    command
>>>
>>>
>>>MartinJ
>>>
>>>
>>>>Hi there,
>>>>I developed an application in which I call the function
>>>>

>>>>Procedure CallExt
>>>>Parameters xfiletoOpen,xlocation
>>>>
>>>>DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
>>>> STRING cOperation,;
>>>> STRING cFileName,;
>>>> STRING cParameters,;
>>>> STRING cDirectory,;
>>>> INTEGER nShowWindow
>>>> result = ShellExecute(0, 'Edit', xFileToOpen , '', xLocation, 1)
>>>>>>>>
>>>>This works fine in Win XP but under a PC running with Win2000 it does not open the file as it was not, but it is, associated to any application.
>>>>
>>>>How can I get through this problem ?
>>>>Thank you all
>>>>Alessio
Previous
Reply
Map
View

Click here to load this message in the networking platform