Go to solution explorer. Right click your project (it's one level down from the very top, which is the solution). Click on Properties.

In the new window, go to C/C++, then Precompiled headers. Make sure in the upper left you are setting the properties for "All Configurations". Change the first option to "not using precompiled headers".

The problem is, your project is set up to default to using the VC++ "stdafx.h" auto-generated file, and for this project you don't want that.