Preprocessor directives for creating errors

When creating the VS2013 solution (ported from VS8) I get the following error:

Error 1 error C2220: the warning is regarded as an error - there is no 'object' file generated by C: \ Program Files \ Microsoft Visual Studio 12.0 \ VC \ atlmfc \ include \ afx.h 38 Warning 2 warning C4996: "MBCS_Support_Deprecated_In_MFC": support for MBCS in MFC Deprecated and may be removed in a future version of MFC. C: \ Program Files \ Microsoft Visual Studio 12.0 \ VC \ atlmfc \ include \ afx.h 38

This is caused by the following code:

    #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

How to find where _MBCS is defined in the solution. Search has no results.

+4
source share
1 answer

_MBCS . General->Character Set - , .

MBCS, Microsoft

MSDN:

msdn

, :

// Warn about MBCS support being deprecated: see http://go.microsoft.com/fwlink/p/?LinkId=279048 for more information.

, UNICODE.

+7

All Articles