The program you are running is incomplete. It is missing a message loop so it exits immediately. Because it does not return an int value upon exit the error code that is printed is not meaningful. These are not the only issues with the code that is shown by the attached image.
You should create a new project using the Windows Desktop Application template as shown below -
This will create a fully formed Windows desktop application that you can study and/or modify to meet your needs.
And you may also benefit by referring to Intro to Win32 programming in C++