Re: VB6 Download multiple files at once: no API, no extra dependency
Quote:
Originally Posted by
Zeev
I dont get it, where do I download the Downloader.ctl file?
Merri probably removed the file if he had uploaded it at all! The good news is that is posted the code used in the "Downloader.ctl" in the first post. That being said you you should need to do is create a new user control and add the first code Merri posted in the first post.
Re: VB6 Download multiple files at once: no API, no extra dependency
Inet? Winsock?
They both need a OCX file..
API is much better.
It does not need a OCX or dll becuz windows already have that dll.
And it will work in vista/windows 7
Re: VB6 Download multiple files at once: no API, no extra dependency
I KNOW this is decades old, but I just wanted to point out that you've got a bug in the code, Merri...
When you have finished downloading the file, you put the byte array AsyncProp.Value into strData but you fail to convert to unicode (as strings will usually be unicode, I assume always but I don't know what things were like when you actually wrote this).
I assume you introduced this bug when changing the code from byte array output to string output :-)
Well, in a way it's a bug...you do the strconv elsewhere in the case of the original code (in your example)...but it wasn't obvious that this was needed :-P