VS2012 C++ warning C4005: '__useHeader': macro redefinition

前端 未结 11 1893
一生所求
一生所求 2020-12-15 16:55

While migrating an old C++ project from Visual Studio 6 up to Visual Studio 2012, we came across an odd set of warnings from inside the standard Microsoft platform headers:<

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 17:48

    Adding #define _USING_V110_SDK71_ in Stdafx.cpp or Stdafx.h would not work if your cpp files do not have precompiled headers.

    To solve this problem, the following works.

    Right-click project in Solution Explorer* → PropertiesC/C++PreprocessorPreprocessor definitionedit → Add _USING_V110_SDK71_

提交回复
热议问题