BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
BOOL ret=m_wndSplitter.CreateStatic(this,1,2);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CLeftView),CSize(250,20),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CDataEditView),CSize(250,20),pContext);
return ret;
}
程序出错:
error C2653: 'CLeftView' : is not a class or namespace name
F:\软件\visual c++\visual c++\MSDev98\MyProjects\OnePFour\MainFrm.cpp(112) : error C2065: 'classCLeftView' : undeclared identifier
F:\软件\visual c++\visual c++\MSDev98\MyProjects\OnePFour\MainFrm.cpp(113) : error C2653: 'CDataEditView' : is not a class or namespace name
F:\软件\visual c++\visual c++\MSDev98\MyProjects\OnePFour\MainFrm.cpp(113) : error C2065: 'classCDataEditView'
怎么回事?