标签:字符类型 echart str wchar_t style har ide xxxx color
char* 转换成 LPCTSTR
char ch[1024] = "xxxx"; int num = MultiByteToWideChar(0,0,ch,-1,NULL,0); wchar_t *wide = new wchar_t[num]; MultiByteToWideChar(0,0,ch,-1,wide,num);
LPCTSTR 转换成 char *
wchar_t widestr[1024] = L"xxxx";
int num = WideCharToMultiByte(CP_OEMCP,NULL,widestr,-1,NULL,0,NULL,FALSE);
char *pchar = new char[num];
WideCharToMultiByte (CP_OEMCP,NULL,widestr,-1,pchar,num,NULL,FALSE);
标签:字符类型 echart str wchar_t style har ide xxxx color
原文地址:https://www.cnblogs.com/baldermurphy/p/9174417.html