[阅读: 447] 2008-09-10 03:50:02
indy的版本问题。。。。。。。
今天之前,在卸载d7带的indy9之后再安装了indy10,程序编译运行得都好好的
上午突然编译报错,开始是http有关的unit编译使用了另一个什么thread的版本
于是把源代码路径完整地设置到indy10所在的4个子目录,
http通过把TIdSSLIOHandlerSocket=TIdSSLIOHandlerSocketOpenssl,通过了
但是邮件那块又出更大的差别了:
indy9的
constructor TIdAttachment.Create(Collection: TIdMessageParts; const AFileName: TFileName = '');
begin
inherited Create(Collection);
FStoredPathname := AFileName;
FFilename := ExtractFilename(AFilename);
end;
destructor TIdAttachment.Destroy;
begin
if FileIsTempFile then begin
DeleteFile(Filename);
end;
inherited;
end;
在Indy10里直接没了这个方法!
不过,奇怪的是以前为什么一直没有问题,难道是因为那时我还是使用indy9??