All pastes #450260 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-04-20 18:36 UTC
rendered paste body
#pragma once#include <windows.h>#include <map>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<HWND, char> 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-intanchormanager.h(19) : error C2238: unexpected token(s) preceding ';'anchormanager.cpp(4) : error C2533: 'AnchorManager::{ctor}' : constructors not allowed a return typeanchormanager.cpp(10) : error C2065: 'map' : undeclared identifieranchormanager.cpp(10) : error C2275: 'HWND' : illegal use of this type as an expressionanchormanager.cpp(10) : error C2062: type 'char' unexpectedanchormanager.cpp(10) : error C2039: 'iterator' : is not a member of '`global namespace''anchormanager.cpp(12) : error C2065: 'i' : undeclared identifieranchormanager.cpp(12) : error C2065: 'm_ControlList' : undeclared identifieranchormanager.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...*/