不可理喻的错!解决方案
不可理喻的错!
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: '_GetBaseMessageMap' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: 'GetMessageMap' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: 'protected: static struct AFX_MSGMAP const CHotelMainMenuWnd::messageMap' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : error C2491: 'CHotelMainMenuWnd::messageMap' : definition of dllimport static data member not allowed
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: 'private: static struct AFX_MSGMAP_ENTRY const * const CHotelMainMenuWnd::_messageEntries' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : error C2491: 'CHotelMainMenuWnd::_messageEntries' : definition of dllimport static data member not allowed
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(150) : warning C4273: 'CHotelMainMenuWnd::CHotelMainMenuWnd' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(183) : warning C4273: 'CHotelMainMenuWnd::~CHotelMainMenuWnd' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(187) : warning C4273: 'Create' : inconsistent dll linkage. dllexport assumed.
------解决方案--------------------
CHotelMainMenuWnd 有没有继承 CWnd ??
清理工程重新编译。。
------解决方案--------------------
'CHotelMainMenuWnd::messageMap' 这是你自定义函数?实现了每一天??
------解决方案--------------------
你工程建的对不对,系统生成的宏你是否有改动
------解决方案--------------------
BEGIN_MESSAGE_MAP 这段代码发上来。。。
------解决方案--------------------
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: '_GetBaseMessageMap' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: 'GetMessageMap' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: 'protected: static struct AFX_MSGMAP const CHotelMainMenuWnd::messageMap' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : error C2491: 'CHotelMainMenuWnd::messageMap' : definition of dllimport static data member not allowed
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : warning C4273: 'private: static struct AFX_MSGMAP_ENTRY const * const CHotelMainMenuWnd::_messageEntries' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(139) : error C2491: 'CHotelMainMenuWnd::_messageEntries' : definition of dllimport static data member not allowed
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(150) : warning C4273: 'CHotelMainMenuWnd::CHotelMainMenuWnd' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(183) : warning C4273: 'CHotelMainMenuWnd::~CHotelMainMenuWnd' : inconsistent dll linkage. dllexport assumed.
d:\hotelmanage\hotelpartwnd\mainmenuwnd.cpp(187) : warning C4273: 'Create' : inconsistent dll linkage. dllexport assumed.
------解决方案--------------------
CHotelMainMenuWnd 有没有继承 CWnd ??
清理工程重新编译。。
------解决方案--------------------
'CHotelMainMenuWnd::messageMap' 这是你自定义函数?实现了每一天??
------解决方案--------------------
你工程建的对不对,系统生成的宏你是否有改动
------解决方案--------------------
BEGIN_MESSAGE_MAP 这段代码发上来。。。
------解决方案--------------------