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

前端 未结 11 1873
一生所求
一生所求 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:29

    This is a resource compiler warning. The solution is easy. Right click on the .rc file in the solution explorer and choose Properties. Now go to Resources > General > Preprocessor Definitions, and add

    %(PreprocessorDefinitions)
    

提交回复
热议问题