ShellExecute doesn't recognise a file association
Posted on 2003-10-23
I am using shellExecute to open various applications depending on their file association. This generally works great.
However whenever I try to open a .ico file it doesn't find the file association and I get a no file association error. Even though this file does have a file assocation and I can open .ico files from both explorer and start/run.
And part 2 of the problem...
I have trapped when there is no file association to shell out to OPEN WITH... And this works fine. However in the .ico case - if I check the ALWAYS USE THIS PROGRAM TO OPEN THESE FILES - it goes off and opens the file in the correct program - but it gets no file association again when I next run through the API.
Where am I going wrong?