file type description in Windows Explorer

To whom that can help,
I am using the Visual C++ 6 under Win2K. My application create a new file format .nbf (NAU binary file). When I view the file under Window Explorer type, it says "NBF file". Would anyone know how to overide the file type description, so it will appear as "NAU binary file" instead of "NBF file" under type in Window Explorer?

Thanks,

Cuteboy
[386 byte] By [Cuong Pham] at [2007-11-18 3:13:26]
# 1 Re: file type description in Windows Explorer
In Windows Explorer...
1. Tools | Folder Options | File Types
2. Find .nbf file and select on that listing
3. Select "Advanced" button
4. In Edit box beside "Change Icon..." Button, is where you can type description.

It only needs done once and will stay that way then.

Hope this helps!
Jeff Hilss at 2007-11-11 3:46:36 >
# 2 Re: file type description in Windows Explorer
Thanks for quick reply, however your way is to specify it from window environment. What I am asking is how to do it from Visual C++ programming perspective , so I don't have to do like that on every comeputer that I install the app.

Cuteboy
Cuong Pham at 2007-11-11 3:47:38 >
# 3 Re: file type description in Windows Explorer
To make it clearer. My question is how to register file type from the Visual C++ programming?

Thanks in advance,

Cuteboy
Cuong Pham at 2007-11-11 3:48:45 >
# 4 Re: file type description in Windows Explorer
I believe then, that you can do that thru a separate install program, (Setup.exe) that will do that for you. How about InstallShield? I believe that comes with C++ but I am not sure.
Jeff Hilss at 2007-11-11 3:49:40 >
# 5 Re: file type description in Windows Explorer
The file description is stored in indirect keys in the Windows registry. Look under HKEY_CLASSES_ROOT. You'll find a list of keys that represent (in some instances) file types. These file type keys point to additional keys within HKCR that provide the description and how to open the file. You can use the resistry API to create (modify) your own file type. As always, make sure you back up the registry before trying to update it. As an aside, updating the registry is much easier if you create a registry script file (.rgs).
Mike Harnad at 2007-11-11 3:50:40 >