您的位置:首页 > 其它

GetDocument missing storage-class or type specifiers的解决方法

2013-10-11 16:42 453 查看
error C2143: syntax error : missing ';' before '*'
error C2501: 'CTest1Doc' : missing storage-class or type specifiers
error C2501: 'GetDocument' : missing storage-class or type specifiers
遇到这种莫名的错误,最可气了。
当我在childFrm中加入 #include "CMyView.h"便报的错
解决方法1是:
是在自己要使用的View类的.cpp文件中加入下面一句声明:
class CMyDoc;
解决方法2是:
是在自己要使用的View类的.cpp文件
#include   "XXXDoc.h"
#include   "XXXView.h"
#include   "MainFrm.h"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: