我是这样获取的: CMFCTestView* pView=(CMFCTestView*) GetActiveView();
但编译总是通不过,错误:
'CMFCTestView' : undeclared identifier
'pView' : undeclared identifier
syntax error : ')'
不知道是什么原因,望高手帮帮忙,小弟在此感谢了~~
但编译总是通不过,错误:
'CMFCTestView' : undeclared identifier
'pView' : undeclared identifier
syntax error : ')'
不知道是什么原因,望高手帮帮忙,小弟在此感谢了~~
missing ';' before '*'
'CDrawDoc' : missing storage-class or type specifiers
'GetDocument' : missing storage-class or type specifiers
错误指的都是这一行:CDrawDoc* GetDocument();请教!
CMainFrame *pMain=(CmaimFrame *)AfxGetApp()->m_pMainWnd;
CyouView *pView=(CyouView *)pMain->GetActiveView();