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
Alternatively, a solution suggested by Brian Gillis, is to add the line:
#include <stdafx.h>
to the top of the cpp file.