views:

126

answers:

1

How can this API URLDownloadToFile be used asynchronously? I need to show the progress of the download via SendMessage to a client window, which can't be done as the API appears to be synchronous and it never sends the OnProgress until the download completes. I have also seen some example codes involving IMoniker interface, but I can't find an example that involves asynchronous reading of data and saving them to a file. Thanks in advance.

+2  A: 

Use URLOpenPullStream instead.

Sheng Jiang 蒋晟