在CCourseView类的前面加上 #include "CourseDoc.h" class CCourseDoc; 就差不多啦
我用了syx的方法,错误少了3个,但还是有一个错误如下: \Windows\Desktop\Course\SelectCourse.cpp(93) : error C2248: 'CCourseView::CCourseView' : cannot access protected member declared in class 'CCourseView' c:\windows\desktop\course\courseview.h(22) : see declaration of 'CCourseView::CCourseView'
#include "CourseDoc.h"
class CCourseDoc;
就差不多啦
\Windows\Desktop\Course\SelectCourse.cpp(93) : error C2248: 'CCourseView::CCourseView' : cannot access protected member declared in class 'CCourseView'
c:\windows\desktop\course\courseview.h(22) : see declaration of 'CCourseView::CCourseView'