#pragma once #include #include enum{ ANCHOR_UP = 1, ANCHOR_DOWN = 2, ANCHOR_LEFT = 4, ANCHOR_RIGHT = 8 }; class AnchorManager{ public: AnchorManager(HWND hwnd); void Update(); private: HWND m_hwnd; map m_ControlList; static BOOL CALLBACK EnumProc(HWND hwnd, LPARAM lparam); } /* anchormanager.h(19) : error C2143: syntax error : missing ';' before '<' anchormanager.h(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int anchormanager.h(19) : error C2238: unexpected token(s) preceding ';' anchormanager.cpp(4) : error C2533: 'AnchorManager::{ctor}' : constructors not allowed a return type anchormanager.cpp(10) : error C2065: 'map' : undeclared identifier anchormanager.cpp(10) : error C2275: 'HWND' : illegal use of this type as an expression anchormanager.cpp(10) : error C2062: type 'char' unexpected anchormanager.cpp(10) : error C2039: 'iterator' : is not a member of '`global namespace'' anchormanager.cpp(12) : error C2065: 'i' : undeclared identifier anchormanager.cpp(12) : error C2065: 'm_ControlList' : undeclared identifier anchormanager.cpp(12) : error C2228: left of '.begin' must have class/struct/union type is ''unknown-type'' anchormanager.cpp(12) : error C2228: left of '.end' must have class/struct/union ... */