Y
YXQ
I want to get the Registry value, the value is 0xFFFFFFFF(4294967295), but
get the value is -1 using Getvalue method, why? thank you.
get the value is -1 using Getvalue method, why? thank you.
YXQ said:I want to get the Registry value, the value is
0xFFFFFFFF(4294967295), but get the value is -1 using Getvalue
method, why? thank you.
yxq said:Thank you, but i do not understand when need to convert the value.
My code:
/////////////////////////////////////////////////
Dim objrk As RegistryKey =
Registry.CurrentUser.OpenSubKey("test") Dim a As Int32 =
objrk.GetValue("name") Dim b As UInt32 =
BitConverter.ToUInt32(BitConverter.GetBytes(a), 0)
MessageBox.Show(a) MessageBox.Show(b)
////////////////////////////////////////////////
The b value always is right. If the value is small, a and b are right
both, if the value is big, a will be wrong.
Do i need add the code BitConverter.ToUInt32 to my program? because i
do not know how many the value is...
YXQ said:I want to get the Registry value, the value is 0xFFFFFFFF(4294967295), but
get the value is -1 using Getvalue method, why? thank you.