home *** CD-ROM | disk | FTP | other *** search
/ Supercompiler 1997 / SUPERCOMPILER97.iso / MS_VC.50 / VC / MFC / SRC / AFXDBCS.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-30  |  919 b   |  36 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1997 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. 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.