If you get that compile error, it means precompiled headers are enabled and if so, then you must add #include "stdafx.h" to the beginning of every source file.
There are probably other errors (related to the actual code example), but I can't help you with that.



