A2W 宏 具体用法请查msdn
#include <afxpriv.h> #include <stdio.h> char str[3]="汉"; wchar_t ws[2]; int main() { USES_CONVERSION; swprintf(ws,L"%s",A2W(str)); printf("%04hX\n",(unsigned short)ws[0]); return 0; } //6C49 //
64,646
社区成员
250,476
社区内容
加载中
试试用AI创作助手写篇文章吧