Sture - maybe I'm missing something, but DeRefC seems like overkill on a UChar array. Just MyUcharArray[n] will return the same value.

How you then deal with the byte values you get back is above my pay grade.

Mike