All 16-bit application use ANSI strings. 32-bit applications may use either ANSI or Unicode strings. ANSI application srore strings as unsigned char, each byte containing a different character. Unicode applications store strings as unsigned short, each short interger value containing a different character.
To specify ANSI , declare the following codes in your project settings:
|
|
To specify Unicode, declare the following codes in your project settings:
|
|
The advantage of using Unicode in your applications is that it enables you to easily localize your application into languages such as Chinese, where two bytes are required to store character. ANSI applications require special DBSS ( Double Byte Character Set) function in order to be localized into languages such as Chinese.
The advantage of using ANSI strings is that, in Microsoft Windows 95, the Windows system calls take ANSI strings; therefore, you must convert Unicode strings to ANSI before calling into these functions.