Delphi中的一个文件下载函数
来源:互联网 发布:思途cms旅游 价格 编辑:程序博客网 时间:2024/05/15 03:20
function DownloadFile(Source, Dest: string): Boolean;
begin
try
Result := UrlDownloadToFile(nil, PChar(source), PChar(Dest), 0, nil) = 0;
except
Result := False;
end;
end;
procedure TForm1.btn2Click(Sender: TObject);
var
SourceFile,DestFile:string;
begin
SourceFile := 'http://www.baidu.com/';
DestFile := 'c:/12ab.htm';
DownloadFile(SourceFile, DestFile);
end;
- Delphi中的一个文件下载函数
- Delphi中的SendKeys函数 - sndKey32.Pas 下载
- delphi idHttp下载文件
- delphi 文件下载汇总
- Delphi如何下载文件?
- delphi idHttp下载文件
- delphi idHttp下载文件
- JS一个文件中的函数调用另一个文件中的函数
- delphi中的split函数
- delphi中的split函数
- Delphi中的SendKeys函数
- Delphi中的SendKeys函数
- DELPHI 中的 Format 函数
- Delphi中的SendKeys函数
- delphi中的split函数
- delphi 中的 split 函数
- delphi中的split函数
- Delphi中的四舍五入函数
- 谷歌炸弹
- ubuntu 安装视频解码控件及文档
- Java正则表达式获取网址和链接文字解析
- Java正则表达式:什么是非捕获组解释
- 今天在论坛里碰到一篇怪帖子,竟然也能火,可能是这个发帖人做的太绝了!
- Delphi中的一个文件下载函数
- 大型高并发高负载网站的系统架构
- MySQL Master/Slave Server 架設
- Terrocotta - 基于JVM的Java应用集群解决方案
- 【凯诚之塔】- 茶思,这一般的生活着!
- 一些很酷的.Net技巧
- 如何限制.net2.0 DataGridView绑定数据源后显示所有属性列
- 各种数据库连接
- 编程感悟