int64 DWORD 与cstring 互转
//int64 与cstring 互转
int64_t val = 1111111111111111111;
CString str;
str.Format(("%I64d"), val); //%I64u 为无符号
int64_t val2 = 0;
_stscanf(str.GetString(), _T("%I64d"), &val2);
//DWORD 与cstring 互转
DWORD dwVal = 0Xffffffff;
CString sVal;
sVal.Format("%u", dwVal);
DWORD dwVal2;
sscanf(sVal, "%u", &dwVal2)
posted on 2019-08-30 15:34 strangeman 阅读(1250) 评论(0) 编辑 收藏 举报