由CPropertySheet派生出一个新类
CPS::CPS(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
AddPage(&first);
AddPage(&second);
}然后oid CMainFrame::Ontestps()
{
CPS ps;//该行出现“no appropriate default constructor available”错误
ps.DoModal();
}
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
AddPage(&first);
AddPage(&second);
}
CPS::CPS(){ }//这里出现overloaded member function 'void (void)' not found in 'CPS'是这样加吗
你用CPS ps("title",this,0)或CPS ps("title",NULL,0)试试看