Hello,
First of all, I am new to this list, and wasn't aware that there was a
mailinglist available.
Hopefully someone is able to help me with this.
I am working on a download manager, and using the HTTPMultipartdownloader
component.
For now I have 5 different HTTPMultipartdownloader components on my form,
but I think I should be able to do it with only 1.
like HTTPMultipartdownloader[xx] ?
If I have 5 or more different weblinks in my queue, I want do download all
these files.
Now I am using 5 components, but it doesn't seem very practical. Basicly i
have 5 of them called DL1, DL2, DL3 , DL4 and DL5.
Is there an easier way to accomplish this? to use just like a
HTTPMultipartdownloader[xx] ?
This is what I have right now where "DL1" is the component. and a listview
that contains the weblink + filelocation.
procedure TMultipartHttpDownloadForm.Button4Click(Sender: TObject);
var
x : integer;
begin
x:=0;
while x <= listview.items.Count -1 do
begin
if (dl1.FileStream = nil) and (x <= listview.items.Count -1) then
begin
bar1.Clear;
dl1.URL := listview.Items[0].Caption;
dl1.StateFileName := listview.Items[0].SubItems[0] + '.Status';
dl1.PartCount := 2;
dl1.FileStream := TFileStream.Create(listview.Items[0].SubItems[0],
fmCreate);
inc(x);
dl1.Start;
end;
application.ProcessMessages ;
end;
end;
Thank you
Perry
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be