建了一个单文档工程
我在点击工具栏上的按钮后产生了一个模式的对话框
我想在对话框中调用view类的一个函数
于是我在点击对话框的“确定”按钮后,
CMainFrame* pFrame = (CMainFrame*)(AfxGetApp()->m_pMainWnd);
CMyView *pView = (CMyView*)(pFrame->GetActiveView());
pView->init();
init()是view类的函数
但是在编译的时候
错误是指向MyView.h文件
具体的语句是:
public:
CSingleFrameDoc* GetDocument();错误的提示是:
error C2143: syntax error : missing ';' before '*'
error C2501: 'CSingleFrameDoc' : missing storage-class or type specifiers
error C2501: 'GetDocument' : missing storage-class or type specifiers请问如何改这个错误? 
谢谢