Вот весь список ошибок, чем они вызваны? Если в примере все работает ок
Код:
Error 1 error C2504: 'CHeaderCtrl' : base class undefined project\sortheaderctrl.h 20
Error 2 error C2146: syntax error : missing ';' before identifier 'TheBaseClass' project\sortheaderctrl.cpp 34
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int project\sortheaderctrl.cpp 34
Error 4 error C2065: 'TheBaseClass' : undeclared identifier project\sortheaderctrl.cpp 34
Error 5 error C2653: 'TheBaseClass' : is not a class or namespace name project\sortheaderctrl.cpp 38
Error 6 error C3861: 'GetItem': identifier not found project\sortheaderctrl.cpp 52
Error 7 error C3861: 'SetItem': identifier not found project\sortheaderctrl.cpp 54
Error 8 error C3861: 'Invalidate': identifier not found project\sortheaderctrl.cpp 57
Error 9 error C3861: 'GetItem': identifier not found project\sortheaderctrl.cpp 91
Error 10 error C3861: 'GetItemCount': identifier not found project\sortheaderctrl.cpp 170
Error 11 error C3861: 'GetItem': identifier not found project\sortheaderctrl.cpp 180
Error 12 error C3861: 'GetItemCount': identifier not found project\sortheaderctrl.cpp 190
Error 13 error C3861: 'SetItem': identifier not found project\sortheaderctrl.cpp 200
Error 14 error C2504: 'CHeaderCtrl' : base class undefined project\sortheaderctrl.h 20
Error 15 error C2504: 'CListCtrl' : base class undefined project\sortlistctrl.h 32
Error 16 error C2146: syntax error : missing ';' before identifier 'TheBaseClass' project\sortlistctrl.cpp 54
Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int project\sortlistctrl.cpp 54
Error 18 error C2065: 'TheBaseClass' : undeclared identifier project\sortlistctrl.cpp 54
Error 19 error C2440: 'static_cast' : cannot convert from 'void (__thiscall CSortListCtrl::* )(NMHDR *,LRESULT *)' to 'void (__thiscall CCmdTarget::* )(NMHDR *,LRESULT *)' project\sortlistctrl.cpp 56
Error 20 error C2440: 'static_cast' : cannot convert from 'void (__thiscall CSortListCtrl::* )(void)' to 'void (__thiscall CWnd::* )(void)' project\sortlistctrl.cpp 57
Error 21 error C2653: 'TheBaseClass' : is not a class or namespace name project\sortlistctrl.cpp 59
Error 22 error C3861: 'GetStyle': identifier not found project\sortlistctrl.cpp 67
Error 23 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 69
Error 24 error C2039: 'SubclassWindow' : is not a member of 'CSortHeaderCtrl' project\sortlistctrl.cpp 70
Error 25 error C2227: left of '->GetSafeHwnd' must point to class/struct/union/generic type project\sortlistctrl.cpp 70
Error 26 error C3861: 'GetHeaderCtrl': identifier not found project\sortlistctrl.cpp 70
Error 27 error C3861: 'InsertColumn': identifier not found project\sortlistctrl.cpp 107
Error 28 error C3861: 'InsertItem': identifier not found project\sortlistctrl.cpp 117
Error 29 error C3861: 'GetItemCount': identifier not found project\sortlistctrl.cpp 117
Error 30 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 130
Error 31 error C3861: 'SetItem': identifier not found project\sortlistctrl.cpp 130
Error 32 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 146
Error 33 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 156
Error 34 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 163
Error 35 error C3861: 'GetItemCount': identifier not found project\sortlistctrl.cpp 169
Error 36 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 172
Error 37 error C2039: 'IsKindOf' : is not a member of 'CSortListCtrl' project\sortlistctrl.cpp 264
Error 38 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 264
Error 39 error C2065: 'classCListCtrl' : undeclared identifier project\sortlistctrl.cpp 264
Error 40 error C3861: 'SortItems': identifier not found project\sortlistctrl.cpp 309
Error 41 error C2660: 'GetDlgCtrlID' : function does not take 0 arguments project\sortlistctrl.cpp 319
Error 42 error C2039: 'Invalidate' : is not a member of 'CSortHeaderCtrl' project\sortlistctrl.cpp 332
Error 43 error C2660: 'GetDlgCtrlID' : function does not take 0 arguments project\sortlistctrl.cpp 345
Error 45 error C3861: 'GetItemCount': identifier not found project\sortlistctrl.cpp 364
Error 46 error C2653: 'CListCtrl' : is not a class or namespace name project\sortlistctrl.cpp 367