在构建VS2013解决方案(从VS8迁移)时,我收到以下错误:
错误1错误C2220:警告视为错误 - 没有 '对象' 文件中生成C:\ Program Files文件\微软的Visual Studio 12.0\VC\atlmfc\\包括38 afx.h警告2警告C4996: 'MBCS_Support_Deprecated_In_MFC':MBCS在MFC支持已弃用,可能会在将来的MFC版本中删除.C:\ Program Files\Microsoft Visual Studio 12.0\VC\atlmfc\include\afx.h 38
这导致bij以下代码:
#ifdef _MBCS // Warn about MBCS support being deprecated: see http://go.microsoft.com/fwlink/p/?LinkId=279048 for more information. #pragma warning(push) #pragma warning(1 : 4996) inline __declspec(deprecated("MBCS support in MFC is deprecated and may be removed in a future version of MFC.")) void MBCS_Support_Deprecated_In_MFC() { } class MBCS_Deprecated_MFC { public: MBCS_Deprecated_MFC() { MBCS_Support_Deprecated_In_MFC(); } }; #pragma warning(pop) #endif
如何在解决方案中找到_MBCS的定义.查找没有任何结果.