--------------------Configuration: ProjManager - Win32 Debug--------------------
Compiling...
ImportDlg.cpp
e:\source_code\projmanager\projmanagerview.h(21) : error C2143: syntax error : missing ';' before '*'
e:\source_code\projmanager\projmanagerview.h(21) : error C2501: 'CProjManagerDoc' : missing storage-class or type specifiers
e:\source_code\projmanager\projmanagerview.h(21) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Generating Code...
Compiling...
MainFrm.cpp
Generating Code...
Error executing cl.exe.
Creating browse info file...ProjManager.exe - 3 error(s), 0 warning(s)

解决方案 »

  1.   

    可能是循环引用了?MainFrame.h里#include了XXView.h?
      

  2.   

    MainFrame.h里只有一句class CProjManagerView;
      

  3.   

    试试在  ProjManagerView.h里加上  #include "ProjManagerDoc.h"
      

  4.   

    可以了,谢谢你啊。
    可是MFC 为什么要这样弄呢
      

  5.   

    我也不太清楚,只不过碰到过和你一样的问题,自己试来试去就试出这么个办法。
    一般是MainFrame引用了View导致View的GetDocument出错