#include一下你的CmyView类相关的h文件

解决方案 »

  1.   

    就是#include一下CmyView类相关的h文件
    就报错如下:syntax error : missing ';' before '*
    'CSplDoc' : missing storage-class or type specifiers
    'GetDocument' : missing storage-class or type specifiers
    可解
    不#include没关系
      

  2.   

    #include “myView.h”
    下移到
    #include “SplDoc.h”

      

  3.   

    在我的CMainFrame里根本就没有 #include “SplDoc.h”这个东西
    #include “SplDoc.h”
      

  4.   

    根本就没有 #include “SplDoc.h”这个东西加一个。因为  “myView.h” 要。