CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CHTMLEditDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CHTMLEditView)); if (!pDocTemplate) { MessageBox(NULL,NULL,0,0); //return FALSE; } HINSTANCE hClientResources = AfxGetResourceHandle(); AfxSetResourceHandle(::GetModuleHandle("pgdtg.dll")) Phan_len_lich_dialog dlg ; dlg.DoModal(); AfxSetResourceHandle(hClientResources); AddDocTemplate(pDocTemplate);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)