warning C4251
-
hi, I have derived a class ListCtrlEx from CListCtrl and exported that class in a dll. The ListCtrlEx containes some member variables of CRect and CString. Now in a standard MFC dialog based application, I have created a class which is derived from ListCtrlEx. Then when compiling I am getting some warning saying.. "warning C4251: 'm_MinBtnRect' : class 'CRect' needs to have dll-interface to be used by clients of class ListCtrlEx" What is problem.. How can fix this warning( i don't want to use #pragma disable ) Thanks in advance nave
-
hi, I have derived a class ListCtrlEx from CListCtrl and exported that class in a dll. The ListCtrlEx containes some member variables of CRect and CString. Now in a standard MFC dialog based application, I have created a class which is derived from ListCtrlEx. Then when compiling I am getting some warning saying.. "warning C4251: 'm_MinBtnRect' : class 'CRect' needs to have dll-interface to be used by clients of class ListCtrlEx" What is problem.. How can fix this warning( i don't want to use #pragma disable ) Thanks in advance nave