-
File Association
How can i make my application set certain files to be associated with it, like how winzip sets *.zip files to be opened with it by default. i think that would be much easier on the users instead of them having to use file->open every time they want to edit one of my apps files.
-
The data for file extensions is held in the registry. I do not know the location, but you should be able to find it on MSDN.
- Sean
-
You want to put your actual extension as a key (such as .bmp or .exe) in the registry under HKEY_CLASSES_ROOT. Then put the default value as another key (also in HKEY_CLASSES_ROOT) that opens the program associated with that program. Just open up regedit and look at how other programs do it. You will understand what is going on in no time.
-