Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/Giser_D/article/details/90728666
The first is Dword turn string
string DwordToString(DWORD val)
{
string cur_str = to_string(long long (val));
return cur_str;
}
string turn dword
DWORD StringToDword(string val)
{
DWORD cur_dword;
sscanf(val.c_str(),"%ul",&cur_dword);
return cur_dword;
}