remove the array size... just put.. POINT pt[][].. so that it takes enough memory by itself..


Code:
 static BOOL			bKeyPressed;
	static HBITMAP		hBitmap;
Make sure are these system defined variables or user defined.. if not . rename them to some other name... to avoid the clash..