Write it in StdAfx.h, before all includes... and if you have still the warnings, look at the post of Gabriel.