then you have created a wrong project..
it should be a console application and not win32 application. error shows it is not able to fine main function.
this is only possible when you dont have a main or else you created a wrong project.
or else you have changed the entry point in C++ option of project settings.
how many files you have and what is there in each file?