I m pretty sure that u have tried to make a "win 32 console Application"... thr "stdafx.h" and "stdafx.cpp" are necessary files... In order to use visual c++ as a normal c++ IDE then navigate to:
File---->New. There in the "files" tab select the "C++ source file". Now, I hope u wnt be getting any "stdafx.h" related errors..