I am trying to read a hex value from a text box and then put it in uint, this is the code:
UInt32 x = Convert.ToUInt32(location_txtbox.ToString());
Why I want to pass x to unmanaged code, and the function header requires a DWORD.
Am I getting an "input string" not in the correct format error? I'm trying to enter values like 0x7c or 0x777, but I keep getting errors?
Thank.
source
share