I am using URLDownloadToCacheFile to download the url.
It is working fine and it is also showing progress bar very properly.
But I want to perform this process asynchronously. URLDownloadToCacheFile function should return immediately and should execute following statement. Following statement may be another call to URLDownloadToCacheFile function to start another file for download. I want to download multiple files at a time (like multithreading)
To do so :-
- I tried handling pbindinfo parameter in GetBindInfo.
- I set grfBINDF = BINDF_ASYNCHRONOUS
- I passed BINDF_ASYNCHRONOUS argument to URLDownloadToCacheFile function.
And much more. Nothing works.
Can anyone please provide me some source code (in Visual Basic 6 or any other development language) that downloads url asynchronously ?
Thanks in advance.