在自己定义的类里加入
CSpsDoc* CCtrlPanelPage3D::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSpsDoc)));
return (CSpsDoc*)m_pDocument;
}为什么会报错呢?错误提示:
error C2065: 'm_pDocument' : undeclared identifier
error C2227: left of '->IsKindOf' must point to class/struct/union