Yoy are probably compiling towards the wrong target platform.
The compiler expects a WinMain() function because you have created a Win32 application project. But you probably have a main() as entry point. Either change the project to a Win32 application, and not a consol application. Or rewrite the main() function to a WinMain().