我用用WIZARD建立了一个SDI程序,在原来的基础上生成了一个新的视图类,进行了静态分割窗口,两个视图的基类均为CView,现在试图在左边的视图类中得到右边视图的指针,可是声明的函数不能通过编译,以下是编译出错信息:
mytreeview.h(44) : error C2143: syntax error : missing ';' before '*'
mytreeview.h(44) : error C2501: 'CAnimalView' : missing storage-class or type specifiers
mytreeview.h(44) : error C2501: 'GetMapView' : missing storage-class or type specifiers对应的语句为左边视图类中的自定义成员函数:
CAnimalView* GetMapView( );
注:已经包含的CAnimalView类的头文件。不知错误出在哪里,网大侠赐教,在线等待