vc怎么把一个字符串转化为wide charactar类型?
1:vc怎么把一个字符串转化为wide charactar类型?
2:wide charactar即使unicode吗,在参数中都表示为const unsigned short*吗?
为什么呢?
问题点数:20、回复次数:1Top
1 楼jerry_mouse()回复于 2001-06-20 22:21:00 得分 20
1.
定义CString时加_T(),CString aa=_T("Hello");
2.
wide charactar就是unicode,在参数中都表示为const unsigned short*是可以的,但实际操作的时候,指针偏移量的大小是unsigned short的大小,unsigned short的byte数在不同计算机上可能不一样。Top




