从CString转成DWORD

来源:互联网 发布:怎样才能加入淘宝商城 编辑:程序博客网 时间:2024/05/28 16:22

需要头文件:#include<stdlib.h>

CString str = L"123";

DWORD  dw;

dw = _tcstoul(str,NULL,16);//最后一个参数表示的是进制

0 0
原创粉丝点击