W
wtzwtz
Unregistered / Unconfirmed
GUEST, unregistred user!
请问用如下函数下载网络文件时,该如何得到要下载的文件的大小和下载的进度啊?
function DownloadFile(Source, Dest: string): Boolean;
begin
try
Result := UrlDownloadToFile(nil, PChar(source), PChar(Dest), 0, nil) = 0;
except
Result := False;
end;
function DownloadFile(Source, Dest: string): Boolean;
begin
try
Result := UrlDownloadToFile(nil, PChar(source), PChar(Dest), 0, nil) = 0;
except
Result := False;
end;