Visual Studio 2013 doesn't ignore disabled warnings

后端 未结 3 530
青春惊慌失措
青春惊慌失措 2020-12-16 17:24

Good morning all. So I\'m attempting to disable Warning 4996 in our c++ projects. It seems to be included in the command line as shown below, but upon compiling, still pops

3条回答
  •  孤城傲影
    2020-12-16 18:15

    In order to Pat Brenner (Visual C++ Libraries Development Team) mentioned in his blog ,

    we are deprecating MBCS support in MFC for Visual Studio 2013. This keeps MFC more closely aligned with the Windows SDK itself, because many of the newest controls and messages are Unicode only

    This warning can be eliminated by adding the NO_WARN_MBCS_MFC_DEPRECATION preprocessor definition to your project build definitions.

    Then do this.

    Go to Project Properties-> C\C++ ->Preprocessor->Preprocessor Definition and add NO_WARN_MBCS_MFC_DEPRECATION

提交回复
热议问题