I am converting a DLL to XE from D7 and need to convert an array of Byte that is passed in to a PChar that can be passed to a StrMove.
I could write my own ByteMove, but am needing a similar conversion in other spots that are more complicated to explain.
procedure Transpose(var Data, OrderData: array of Byte);
TmpData: array[0..63] of Byte;
i : Byte;
StrMove(@TmpData, @Data, SizeOf(Data));
for i := 0 to High(OrderData) do
Data[i] := TmpData[OrderData[i]];
With D7 this worked. But with the new PWideChar support in D2009+ it will not.