When you start a new Win32 console project (File, New, Project, ...) do not select the "Empty Project" checkbox. When that checkbox is off you will get a new project that has a stdafx.h file, and also you will get the proper settings for all the compiler options.When you start a new Win32 console project (Fil