Those errors specify that the functions can not be found. You need to link with the correct library. To find the library needed for a function, look up the function in MSDN and you will find something like this at the bottom of the page:
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
Then add the required library to your project. The easiest way to do this in Visual C++ is to add a pragma directive to your code:
Code:
#pragma comment(lib, "gdi32.lib")
#pragma comment(lib, "user32.lib")