【发布时间】:2011-08-31 07:39:06
【问题描述】:
谁能帮助我如何将字符串值转换为 dword hex 例如:
string i = "1";
uint32 m = ....
m.toString(X8);
这样: m = 00000001
【问题讨论】:
谁能帮助我如何将字符串值转换为 dword hex 例如:
string i = "1";
uint32 m = ....
m.toString(X8);
这样: m = 00000001
【问题讨论】:
string i = "1";
UInt32 m;
UInt32.TryParse(i, out m);
string result = m.ToString("X8");
或
string result = Convert.ToUInt32("1").ToString("X8");
【讨论】: