INFO: UNICODE and _UNICODE Needed to Compile for Unicode

ID: Q99359


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), used with:
    • Microsoft Windows NT versions 3.1, 3.5, 3.51, 4.0
    • Microsoft Windows 2000


SUMMARY

To compile code for Unicode, you need to #define UNICODE for the Win32 header files and #define _UNICODE for the C Run-time header files. These #defines must appear before the following:


   #include <windows.h> 
and any included C Run-time headers. The leading underscore indicates deviance from the ANSI C standard. Because the Windows header files are not part of this standard, it is allowable to use UNICODE without the leading underscore.

Additional query words:

Keywords : kbAPI kbGDI kbIntl kbKernBase kbNTOS kbNTOS310 kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS2000 kbGrpUser kbDSupport kbGrpNet
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: January 25, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.