// "임시 인터넷 파일" 캐시에 있다면 삭제하고 시작하자.
DeleteUrlCacheEntry(PChar(URL));
DownloadURL:=TDownloadURL.Create(nil);
try
DownloadURL.URL:=URL;
DownloadURL.FileName:=ExtractFilePath(Application.ExeName)+'\퍼즐보글.zip';
DownloadURL.Execute;
finally
if Assigned(DownloadURL) then FreeAndNil(DownloadURL);
end;
procedure URL_OnDownloadProgress(Sender: TDownloadURL;
Progress, ProgressMax: Cardinal;
StatusCode: TURLDownloadStatus;
StatusText: String; var Cancel: Boolean);
Progress, ProgressMax: Cardinal; StatusCode: TURLDownloadStatus;
StatusText: String; var Cancel: Boolean);
{ 프로그레스바 }
ProgressBar1.Max:=ProgressMax;
ProgressBar1.Position:=Progress;
{ 다운로드 진행표시? }
Label1.Caption:=Format('%d/%d', [Progress, ProgressMax]);
Refresh;
Application.ProcessMessages;
'Delphi' 카테고리의 다른 글
[Delphi] 주민등록번호, 신용카드번호 유효성 검사 (0) | 2009.04.18 |
---|---|
[Delphi] 어떤 클래스가 어떤 프로퍼티를 가지고 있는지 검사 (0) | 2009.04.18 |
[Delphi] MD5 함수 (0) | 2009.04.18 |
[Delphi] 바탕화면에 바로가기 아이콘 만들기 (0) | 2009.04.18 |
[Delphi] .swf 파일 폼에 넣기 (TShockWaveFlash) (0) | 2009.04.18 |