error C2065: 'CAboutDlg' : undeclared identifier
程序工具栏上的“关于……”菜单项(ID号为IDD_ABOUTBOX)不能用(灰色),于是,我在CAppview里添加了成员函数以处理该菜单上的COMMAND消息:
void CAppView::OnAboutbox()
{
CAboutDlg about;
about.DoModal();
}
结果出现下面这样的问题,疑惑~~
error C2065: 'CAboutDlg' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'about'
error C2065: 'about' : undeclared identifier
error C2228: left of '.DoModal' must have class/struct/union type
初学VC,望多指教