现在遇到一个问题
想实现一个 单文档多窗口视图
在CMainFrame 有两个切换窗口视图的菜单项
响应函数中分别要声明一个窗口视图对象
pNewActiveView = (CView*)new CViewA;
pNewActiveView = (CView*)new CViewB;
CViewA 和 CViewB 都是CFormView;
在MainFrame.cpp中加入头文件
#include "ViewA.h"#include "ViewB.h"如果ViewA.h放前面  就出 error C2061: syntax error : identifier 'CViewB';error C2143: syntax error : missing ';' before '}'
如果ViewB.h放前面  就出 error C2061: syntax error : identifier 'CViewA';error C2143: syntax error : missing ';' before '}'