Registering an extension in Windows 7
Posted on 2010-01-09
I've had a C++ (MFC VC 6.0) application running for years.
As part of it, it registers the .fre extension to the application. The .exe is in a folder in C://Program Files.
Under Windows 7, it installs normatlly, but the registration code doesn't seem to work. The system doesn't seem to know about the .fre extension after it runs.
I've included the code below. What do I need to change to work under W7 ?
pDocTemplate = new CMultiDocTemplate(
IDR_WINFRETYPE, // Winfree\nF00_\nWinfree Document\n\\
//Winfree Files (*.fre)\n.fre\nWinfreeFile\nWinFree File
RUNTIME_CLASS(CMDIChildWnd), // standard MDI child frame
RegisterShellFileTypes( ); // added to register .fre