hex string 换转

  • hex2string

std::stringstream R;
R << std::hex << 0x1254;

 

DWORD Str2Hex(string str)
{
return std::stoul(str, nullptr, 16);
}

posted @ 2016-08-31 15:55  ahuo  阅读(640)  评论(0编辑  收藏  举报