This link must give you some clue.
Purpose of stdafx.h
The lines defined before the
#include "stdafx.h"
are ignored by the compiler. So if you want to actually include those files then you need to include them after the #include "stdafx.h".
Hope it is clear.