主题:单文档关联控件
准备做一个单文档的文件,关联supermap的两个控件。建立完了类之后报错显示,但是已经存在了这两个类了,就是CSuperMap和CSuperWorkspace,请问是什么情况,怎么解决?
或者说下单文档中怎么关联一个其他的控件。
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2146: syntax error : missing ';' before identifier 'm_supermap'
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'CSuperMap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'm_supermap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2146: syntax error : missing ';' before identifier 'm_superworkspace'
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'CSuperWorkspace' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'm_superworkspace' : missing storage-class or type specifiers
FirstSuperMapView.cpp
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2146: syntax error : missing ';' before identifier 'm_supermap'
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'CSuperMap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'm_supermap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2146: syntax error : missing ';' before identifier 'm_superworkspace'
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'CSuperWorkspace' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'm_superworkspace' : missing storage-class or type specifiers
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(115) : error C2065: 'm_superworkspace' : undeclared identifier
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(115) : error C2228: left of '.Create' must have class/struct/union type
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(116) : error C2065: 'm_supermap' : undeclared identifier
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(116) : error C2228: left of '.Create' must have class/struct/union type
Generating Code...
Error executing cl.exe.
或者说下单文档中怎么关联一个其他的控件。
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2146: syntax error : missing ';' before identifier 'm_supermap'
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'CSuperMap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'm_supermap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2146: syntax error : missing ';' before identifier 'm_superworkspace'
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'CSuperWorkspace' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'm_superworkspace' : missing storage-class or type specifiers
FirstSuperMapView.cpp
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2146: syntax error : missing ';' before identifier 'm_supermap'
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'CSuperMap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(55) : error C2501: 'm_supermap' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2146: syntax error : missing ';' before identifier 'm_superworkspace'
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'CSuperWorkspace' : missing storage-class or type specifiers
d:\c++\firstsupermap\firstsupermapview.h(56) : error C2501: 'm_superworkspace' : missing storage-class or type specifiers
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(115) : error C2065: 'm_superworkspace' : undeclared identifier
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(115) : error C2228: left of '.Create' must have class/struct/union type
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(116) : error C2065: 'm_supermap' : undeclared identifier
D:\C++\FirstSuperMap\FirstSuperMapView.cpp(116) : error C2228: left of '.Create' must have class/struct/union type
Generating Code...
Error executing cl.exe.