peta,你跑netants的站点看看就知道什么回事啦,只要你在netants中设好不提示增加、删除任务之类的就不会弹出来了
就是这样子用啦,支持netants和吸血鬼的
procedure tfrmudp.downloadbysoft(soft, fileurl: string); //download by soft like Netants or Netvampire
var
nv, na: Variant;
begin
if soft = 'nv' then
begin
CoInitialize(nil);
try
NV := CreateOleObject('Vampire.NewJob');
if VarType(NV) <> varDispatch
then raise Exception.Create('Cannot connect to Net Vampire');
NV.Initialize('', fileurl);
finally
CoUninitialize;
end;
end
else
if soft = 'na' then
begin
CoInitialize(nil);
try
Na := CreateOleObject('netants.api');
if VarType(na) <> varDispatch
then raise Exception.Create('Cannot connect to NetAnts');
na.addurl(fileurl, '', '');
finally
CoUninitialize;
end;
end;
end;