F.A.Q. - fatal error C1010 in C++ generated code

This error is caused because the produced code does not include stdafx.h, which is the default precompiled header for most VC++ projects. You can either disable precompiled headers for the file by right clicking on the .cpp item (under source files), and choose Settings. Click the Click the "Settings For" drop down list and select "All Configurations", then click the C++ tab and select "Precompiled Headers" from the Category drop down list. Select the "Not Using Precompiled Headers" option, and click OK.

Alternatively, a solution suggested by Brian Gillis, is to add the line:

#include <stdafx.h>

to the top of the cpp file.