Sorry, did not understand from your code what is this function suppose to
do.
Please tell us what you want to get out of the function with name
StringToHex
George.
> public static String StringToHex(String sString)
> {
[quoted text clipped - 9 lines]
> return sb.ToString();
> }
Edwin Knoppert - 17 Feb 2006 17:00 GMT
Don't let the unicode string fool you.
Just wanted to convert a string (with ansi chars) to two-byte hex notation.
Using a string for in and out is simply convienant.
The VB part has an Hex() function, c has value converters.
> Sorry, did not understand from your code what is this function suppose to
> do.
[quoted text clipped - 16 lines]
>> return sb.ToString();
>> }