超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
about unicode programming - using UNICODE macro
#ifdef UNICODE
memcpy(pByte, strSource.GetBuffer(), strSource.GetLength() * 2);
#else
memcpy(pByte, strSource.GetBuffer(), strSource.GetLength());
#endif
应该这么写:
memcpy(pByte, strSource.GetBuffer(), strSource.GetLength()*sizeof(TCHAR));
|