INFO: UNICODE and _UNICODE Needed to Compile for Unicode (99359)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q99359

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 before 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.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbAPI kbGDI kbinfo kbIntl kbIntlDev kbKernBase KB99359