Here\'s the code below, VS said that on 
line 109 ( MoveTo(hdc, x, y);
\"MoveTo\" is undefined. 
Can someone explain me what\'s wrong ? Th
MoveTo() is a Windows 3.x function that is no longer supported.  Use MoveToEx() instead, setting the last argument to NULL.  You can define your own MoveTo() to do that, eg:
#define MoveTo(hdc, x, y) ((void)MoveToEx(hdc, x, y, NULL))
Or:
inline void MoveTo(HDC hdc, int X, int Y) { MoveToEx(hdc, X, Y, NULL); }