ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   IBindStatusCallback (https://www.excelbanter.com/excel-programming/323722-ibindstatuscallback.html)

Jack Clift

IBindStatusCallback
 
Does any one have code examples of implementing the
IBindStatusCallback class / methods of URLMON
URLDownloadToFile API call?

Thanks

Jack

Robin Hammond[_2_]

IBindStatusCallback
 
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" wrote in message
...
Does any one have code examples of implementing the
IBindStatusCallback class / methods of URLMON
URLDownloadToFile API call?

Thanks

Jack




Jack Clift[_2_]

IBindStatusCallback
 
Sorry - probably asked the wrong questoin:

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

"Robin Hammond" wrote:

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" wrote in message
...
Does any one have code examples of implementing the
IBindStatusCallback class / methods of URLMON
URLDownloadToFile API call?

Thanks

Jack





Robin Hammond[_2_]

IBindStatusCallback
 
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 wrote in message
...
Sorry - probably asked the wrong questoin:

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

"Robin Hammond" wrote:

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" wrote in message
...
Does any one have code examples of implementing the
IBindStatusCallback class / methods of URLMON
URLDownloadToFile API call?

Thanks

Jack







Mike Landis

IBindStatusCallback
 
Try this:

http://home.inreach.com/mdunn/code/U...LDownload.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

"Robin Hammond" wrote:

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 wrote in message
...
Sorry - probably asked the wrong questoin:

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

"Robin Hammond" wrote:

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" wrote in message
...
Does any one have code examples of implementing the
IBindStatusCallback class / methods of URLMON
URLDownloadToFile API call?

Thanks

Jack








All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com