我想在视图中调用对话框CAboutDlg和在对话框中调用视图。
在试图类中添加了CAboutDlg类型指针,在CAboutDlg类中也加了视图类的指针成员。
但编译时总是出现
CTest1View.h(16) : error C2143: 语法错误 : 缺少“;”(在“*”的前面)
CTest1View.h(16) : error C2501: “CCTest1View::CAboutDlg” : 缺少存储类或类型说明符
CTest1View.h(16) : error C2501: “CCTest1View::pv” : 缺少存储类或类型说明符
CTest1.cpp
CTest1View.h(16) : error C2143: 语法错误 : 缺少“;”(在“*”的前面)
CTest1View.h(16) : error C2501: “CCTest1View::CAboutDlg” : 缺少存储类或类型说明符
CTest1View.h(16) : error C2501: “CCTest1View::pv” : 缺少存储类或类型说明符在CAboutDlg中加CCTest1View指针成员也会出现上面的错误。
请问如何解决?