16,467
社区成员
发帖
与我相关
我的任务
分享
CString str(_T("1111"));
char* p = new char[4];
WideCharToMultiByte (CP_OEMCP,NULL,str,-1,p1,4,NULL,FALSE);
LONGLONG num;
int len = MultiByteToWideChar(CP_ACP, 0, p, -1, NULL, 0);
WCHAR* wBuf = new WCHAR[len];
MultiByteToWideChar(CP_ACP, 0, p, -1, wBuf, len);
num = _tcstoul(wBuf, 0, 16);
问题在于这个num该用什么类型定义