SyntaxFix
Write A Post
Hire A Developer
Questions
The line #include "stdafx.h" must be the first line at the top of each source file, before any other header files are included.
#include "stdafx.h"
If what you've shown is the entire .cxx file, then you did forget to include stdafx.h in that file.
.cxx
stdafx.h