When I build a project (with VS2012) I get folowing output several times:
warning C4995: \'DwmEnableComposition\': name was marked as #pragma deprecated
You probably have 'SDL checks' enabled for the project where you get an error (under C/C++ -> General). It's an option in the 'new project' wizard. Remove that and it'll revert back to a warning.