afxdbcs.cpp 925 B

1234567891011121314151617181920212223242526272829303132333435
  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. #include "stdafx.h"
  11. #ifdef _MBCS // entire file is only for DBCS enabling
  12. #ifdef AFX_INIT_SEG
  13. #pragma code_seg(AFX_INIT_SEG)
  14. #endif
  15. #ifdef _DEBUG
  16. #undef THIS_FILE
  17. static char THIS_FILE[] = __FILE__;
  18. #endif
  19. AFX_STATIC BOOL PASCAL _AfxInitDBCS()
  20. {
  21. CPINFO info;
  22. GetCPInfo(GetOEMCP(), &info);
  23. return info.MaxCharSize > 1;
  24. }
  25. const AFX_DATADEF BOOL _afxDBCS = _AfxInitDBCS();
  26. #endif //_MBCS
  27. /////////////////////////////////////////////////////////////////////////////