【发布时间】:2009-11-30 00:17:28
【问题描述】:
谁能帮我解决这个问题:
{$IFDEF UNICODE}
function FormatStringByteSize( TheSize: Cardinal ): string;
{ Return a cardinal as a string formated similar to the statusbar of Explorer }
var
Buff: string;
Count: Integer;
begin
Count := Length(Buff);
FillChar(Buff, Count, 0);
ShLwApi.StrFormatByteSize( TheSize, PWideChar(Buff), Length( Buff ) * SizeOf( WideChar ) );
Result := Buff;
end;
{$ENDIF}
【问题讨论】:
-
修复它?是什么让你认为它有问题?你有没有做任何事情来尝试调试它?你明白它应该如何工作吗?您是否阅读过您正在调用的函数的文档?无论如何,您是从哪个网站复制此代码的?
标签: delphi unicode delphi-2010