随笔分类 - Delphi
摘要:用到临界区 保护写日志的函数; 递归函数 删除目录下的所有文件; 循环创建或判断FTP的目录; 可改进的地方:循环压缩深层次目录的所以文件; 实现断点续传,或断点下载;
阅读全文
摘要:客户程序:第一步:新建一个Application。第二步:File----->New----->Other------>WebServices----->WSDLImporter 然后在LocationofWSDLFileorURL中填入:http://10.22.30.61:36601/Mon...
阅读全文
摘要:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,IniFiles, Grids, ExtCtrls, But...
阅读全文
摘要:function TFtpContentThd.DeleteDirectory(NowPath: string): Boolean;var search: TSearchRec; ret: integer; key: string;begin if NowPath[Length(NowPat...
阅读全文
摘要:{******************************************************************************* Copyright (C), 2014-2020, aicaipiao File name: UFtpContentThd.pas Author: lipingchen Version: Date: 2014092...
阅读全文
摘要:SetLength(OldDeptInfo,0); //释放旧数组 OldDeptInfo:=nil; 这样也可以; //SetLength(OldDeptInfo,Length(NewDeptInfo)); //不需要设定长度; OldDeptInfo:= NewDeptI...
阅读全文