Table of Contents
Previous Sample | List of Samples | Next Sample

Internat.h


/* Internationalize on NT, translating the argv array into the
   current OEM code page used by the console. */

#ifdef   _WIN32
#  include  <windows.h>
#  define   ASCII_CodePage          437
#  define   Internationalize()      if (GetOEMCP() != ASCII_CodePage)   \
                                       {                                \
                                       register int i;                  \
                                       for (i = 0;  i < argc;  i++)     \
                                          CharToOem(argv[i], argv[i]);  \
                                       }
#else
#  define   Internationalize()
#endif



Previous Sample | List of Samples | Next Sample
Table of Contents



Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.