procedure TForm1.Button1Click( Sender: TObject );
var
arrSize: array[ 0..255 ] of Char;
begin
{same formating like in statusbar of Explorer}
StrFormatByteSize( 70846, arrSize, Length( arrSize ) * Sizeof( arrSize) );
Label1.Caption := 'Result: ' + arrSize;
end;
StrFormatByteSize requires arrsize to be a PWideChar.
How do I get the result to display correctly in Delphi 2009?