Hi Remko,
are you aware of the support functions HexToBin() and BinToHex()?
Delphi-Quellcode:
uses
Classes;
var
s: string;
data: array of Byte;
begin
s := 'CafeCafe';
SetLength(data, Length(s) shr 1);
HexToBin(@s[1], @data[0], Length(data));
BinToHex(@data[0], @s[1], Length(data));
ShowMessage('"' + s + '"');
end;
Regards