General information
Category:
Windows API functions
For the record, I think that double clicking triggers whatever operation is the default. Usually that's 'open', but not necessarily.
>Alessio,
>
>I think Borislav has hit it. double clicking a file in explorer triggers the "open" operation not the "edit" operation you are asking it to do in your shellexecute() call.
>
>Either change your call to open, or make sure the edit option on the file type is set to the program you want.
>
>>It works fine
>>The file is opened by MSPAINT
>>>What happend if you double click on that file in Windows Explorer (there where your ShellExecute not working)?
>
>>>>>> result = ShellExecute(0, 'Edit', xFileToOpen , '', xLocation, 1)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only