Allow me to re-iterate:
There are a couple of problems that are occurring:
1.) The way in which you create the project is causing problems.
2.) The way in which you use the main() function is causing problems.
In your situation, as a beginner, it is advisable to create "empty" projects. Whenever you create a new project, you are greeted with a dialogue menu, in which you can type in a name and change some other project parameters.
1.) You can choose to create a Win32 console application, or a Win32 project. Since you're not going to be working with the windows API extensively just yet, select Win32 console application.
2.) Check the "empty project" check box. Also un-check the "precompiled header" check box. This way, your project won't be dependent on that nasty "stdafx.h" pre-compiled header. It has it's own purpose, which you shouldn't have to worry about yet.
Congrats, now you have an empty win32 console project.
Now, you just need to create and add a main .cpp file, and write a main() function.
Judging by how you wrote your main() function in that other thread of yours, I assume that the concept of a main() function is mysterious to you(?)
If that's the case, then it would be hard for me to explain in this post. It would be easier for me to just redirect you to a beginner tutorial or something:
http://www.cplusplus.com/doc/tutorial/program_structure/