home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / mfc / src / afxdbcs.cpp < prev    next >
C/C++ Source or Header  |  1998-06-16  |  925b  |  36 lines

  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.  
  11. #include "stdafx.h"
  12.  
  13. #ifdef _MBCS    // entire file is only for DBCS enabling
  14.  
  15. #ifdef AFX_INIT_SEG
  16. #pragma code_seg(AFX_INIT_SEG)
  17. #endif
  18.  
  19. #ifdef _DEBUG
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23.  
  24. AFX_STATIC BOOL PASCAL _AfxInitDBCS()
  25. {
  26.     CPINFO info;
  27.     GetCPInfo(GetOEMCP(), &info);
  28.     return info.MaxCharSize > 1;
  29. }
  30.  
  31. const AFX_DATADEF BOOL _afxDBCS = _AfxInitDBCS();
  32.  
  33. #endif //_MBCS
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36.