Thursday, May 30, 2013

decoding string of numbers to bytes word and double word.

Hi,


Are you looking for string to hex and string to dec conversion, just like the one given below?



int decValue = int.Parse(sMessage, System.Globalization.NumberStyles.HexNumber);
szParamValueDec = string.Format("{0:D}", decValue);
szParamValueHex = string.Format("{0:X}", decValue);

No comments:

Post a Comment