Chinaunix首页 | 论坛 | 博客
  • 博客访问: 93244
  • 博文数量: 14
  • 博客积分: 490
  • 博客等级: 下士
  • 技术积分: 150
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-20 11:00
文章分类

全部博文(14)

文章存档

2011年(1)

2008年(4)

2007年(9)

我的朋友
最近访客

分类: C/C++

2007-08-08 14:32:16

      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:
 

#define OLE2ANSI

   To specify Unicode, declare the following codes in your project settings:

#define _UNICODE

   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.

阅读(1042) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~