I think you may have created your project as a Win32 Application. Try creating a Win32 Console Application, if you haven't already.

It's looking for WinMain(), the starting point of a Windows application. Obviously, your project has a main() instead, and that's where the error is coming from