File Associations
-
-
Does anybody know how to or even if you can register file associations in VC++. for example, when you double click on a .doc, it will open in word. that kind of stuff, i know you can do it in InstallShield, but is there a way to do it in the code? Cheers Dor
Yes you can. You need to set certain registry keys. The details can be found in this link.
-
Does anybody know how to or even if you can register file associations in VC++. for example, when you double click on a .doc, it will open in word. that kind of stuff, i know you can do it in InstallShield, but is there a way to do it in the code? Cheers Dor
If you are using MFC you could look at CWinApp::RegisterShellFileTypes. You may even refer to the code of the function to figure out how it is done.
-
If you are using MFC you could look at CWinApp::RegisterShellFileTypes. You may even refer to the code of the function to figure out how it is done.
-
If you create a MFC SDI or MDI application with the wizard, some time at step 4 (i'm not sure) you can click the advanced button and define custom file format for your application. Then the wizard will crete a REG file in the project directory. You can have a look at it and see how they do it. Best regards, Alexandru Savescu