INFO: UNICODE and _UNICODE Needed to Compile for Unicode

ID: Q99359

The information in this article applies to:

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          : kbGDI kbIntl kbKernBase kbNTOS kbGrpUser kbGrpNet 
Issue type        : kbinfo

Last Reviewed: December 24, 1998