Currently, there is no hotfix available for this bug. However, to work around you can modify the Add Wizard script code to fix the bug.
Open the default.js file c:\Program Files\Microsoft Visual Studio 9.0\VC\VCWizards\CodeWiz\MFC\Simple\scripts\1033\default.js in a text editor.
At line 126, move the CloseResourceFile() function call to after the AddSymbol() call, i.e.
Change
if (strBaseClass == "CDHtmlDialog")
{
RenderAddTemplate(wizard, "dhtmldlg.htm", strHTMLFile, selObj, false);
oResHelper.OpenResourceFile(strProjectRC);
var strSymbolValue = oResHelper.AddResource(strHTMLID, strProjectPath + strHTMLFile, "HTML");
if (strSymbolValue == null) return;
oResHelper.CloseResourceFile();
wizard.AddSymbol("HTML_ID", strSymbolValue.split("=").shift());
}
To
if (strBaseClass == "CDHtmlDialog")
{
RenderAddTemplate(wizard, "dhtmldlg.htm", strHTMLFile, selObj, false);
oResHelper.OpenResourceFile(strProjectRC);
var strSymbolValue = oResHelper.AddResource(strHTMLID, strProjectPath + strHTMLFile, "HTML");
if (strSymbolValue == null) return;
//oResHelper.CloseResourceFile();
wizard.AddSymbol("HTML_ID", strSymbolValue.split("=").shift());
oResHelper.CloseResourceFile();
}
Note that any hotfixes or service packs produced in the future that modify the default.js file may require you to redo these changes.