有关error C2491: 'CComboBoxSelEx::messageMap' : definition of dllimport static data member not allowed错误的问题,诚恳指教,万分
编译project时出现如下两个错误:
1、error C2491: 'CComboBoxSelEx::messageMap' : definition of dllimport static data member not allowed
2、error C2491: 'CComboBoxSelEx::_messageEntries' : definition of dllimport static data member not allowed
看源程序是在下面这个地方出的问题,但不知怎么回事,恳请各位高手指教,万分感谢!!
BEGIN_MESSAGE_MAP(CComboBoxSelEx, CComboBox)
//{{AFX_MSG_MAP(CComboBoxSelEx)
ON_CONTROL_REFLECT(CBN_DROPDOWN, OnDropdown)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
在头文件中也已经声明了如下:
afx_msg void OnDropdown();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()