怎么不能在MainFrm.cpp里包含视图类的头文件啊
我的工程名是why
在MainFrm.cpp前面加上 #include "whyView.h"后编译不通过
d:\vc\why\whyview.h(21) : error C2143: syntax error : missing ';' before '*'
d:\vc\why\whyview.h(21) : error C2501: 'CWhyDoc' : missing storage-class or type specifiers
d:\vc\why\whyview.h(21) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Error executing cl.exe.
去掉 #include "whyView.h"后一切正常啊