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" 

 

另外:

 

 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-12-08
相关资源
相似解决方案