一段小程序出现错误,帮忙解决下
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) {
// TODO: Add your specialized code here and/or call the base class
CRect cr;
GetClientRect(&cr);
CSize panSize(cr.Width()/3,cr.Height()/3);
m_splitter.CreateStatic(this,3,1);
m_splitter.CreateView(0,0,RUNTIME_CLASS(CCSDI_2View),panSize,pContext);
m_splitter.CreateView(1,0,RUNTIME_CLASS(CCSDI_2View),panSize,pContext);
m_splitter.CreateView(2,0,RUNTIME_CLASS(CCSDI_2View),panSize,pContext);
return CFrameWnd::OnCreateClient(lpcs, pContext);
}
--------------------Configuration: CSDI_2 - Win32 Debug--------------------
Compiling...
MainFrm.cpp
D:\VC练习\CSDI_2\MainFrm.cpp(116) : error C2653: 'CCSDI_2View' : is not a class or namespace name
D:\VC练习\CSDI_2\MainFrm.cpp(116) : error C2065: 'classCCSDI_2View' : undeclared identifier
D:\VC练习\CSDI_2\MainFrm.cpp(117) : error C2653: 'CCSDI_2View' : is not a class or namespace name
D:\VC练习\CSDI_2\MainFrm.cpp(118) : error C2653: 'CCSDI_2View' : is not a class or namespace name
Error executing cl.exe.
感谢啦
[ 本帖最后由 shn521 于 2010-9-20 12:02 编辑 ]