Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IBindStatusCallback

12 views
Skip to first unread message

Jack Clift

unread,
Feb 21, 2005, 8:44:48 PM2/21/05
to
Does any one have code examples of implementing the
IBindStatusCallback class / methods of URLMON
URLDownloadToFile API call?

Thanks

Jack

Robin Hammond

unread,
Feb 22, 2005, 6:16:33 PM2/22/05
to
Jack,

I haven't tried any callbacks but have used the UrlDownloadToFile call. As
far as I have seen within VBA it is completely asynchronous, so I'm not sure
what good a callback would do for you.

Robin Hammond
www.enhanceddatasystems.com

"Jack Clift" <anon...@discussions.microsoft.com> wrote in message
news:020701c51880$17ea78d0$a601...@phx.gbl...

Clift@discussions.microsoft.com Jack Clift

unread,
Feb 22, 2005, 8:13:01 PM2/22/05
to
Sorry - probably asked the wrong questoin:

how do I get download status (progress) using urlmon's URLDownloadToFile?

Robin Hammond

unread,
Feb 22, 2005, 8:25:36 PM2/22/05
to
I don't think you can. As I said it is asynchronous meaning that execution
does not return to VBA until the file has downloaded.

If you really want to monitor a download's progress you will probably have
to look at using a winsock control but it is far more complex.

Robin Hammond
www.enhanceddatasystems.com

"Jack Clift" <Jack Cl...@discussions.microsoft.com> wrote in message
news:DD676DC8-2B35-4E77...@microsoft.com...

Mike Landis

unread,
Mar 26, 2005, 11:35:02 AM3/26/05
to
Try this:

http://home.inreach.com/mdunn/code/URLDownload/URLDownload.html

There's a complete VC++ 6.0 project there, including an abort button, as
well as text and progress control feedback, but I haven't been able to
compile the equivalent in Embedded Visual C++ 3.0 (which is my interest). If
anyone knows the trick (include files, project settings, etc.) that makes
that possible, please let me know...

-Mike Landis

0 new messages