Per Visual C++, aggiungi

#include "stdafx.h"

nei file sorgenti cpp