mfc >> [Visual C++] File Associations with RegOpenKeyEx ...

by PixelDady » Thu, 04 Dec 2003 08:15:05 GMT


Hello,

Here is my problem : i try to create a file associations class. When i
use it like that, it works, but not perfectly :

HKEY_CLASSES_ROOT
.myext
(default) REG_SZ MyProgFiles

HKEY_CLASSES_ROOT
MyProgFiles
(default)
DefaultIcon REG_SZ c:\program files\myapp\MyProg.exe,0
shell
open
command
(default) REG_SZ "c:\program
files\myapp\MyProg.exe" "%1"

This works with many file extensions, but when i try to associate it
with .bmp extension, even with those settings, and when i double click on a
.bmp file, the default windows XP picture viewer is launched, and not my
program.

Any idea ?

PixelDady






Similar Threads

1. Getting args array from files launch through file association - CSharp/C#

2. Make Visual C++ recognize file extensions as C++ files

3. File Association with Icons - CSharp/C#

4. File associations

Is there any way to association file extensions with my app from the 
InstallProject (MSI) or do I have to do it manually by poking around in the 
registry when the app first runs?


Thanks

Pete 


5. Probably an easy one for ya - File Associations - CSharp/C#

6. How to creating a file association

I want to create a unique file extension for my data file (e.g. test.ada) 
where the "ada" is my extension and assign an icon to the extension just 
like MS Word does with the ".doc" file. I want when the application starts 
up it checks for the extension , if it is not registered it is then 
registered, how do you do this in .net? 


7. File association & Setup - CSharp/C#

8. File association problem after install VS. NET2003