Re: URLDownloadToFile



Igor Tandetnik <itandetnik@xxxxxxxx> wrote in message
news:OL1NdTbsFHA.2540@xxxxxxxxxxxxxxxxxxxxxxx
> "nly" <nlyee2001@xxxxxxxxx> wrote in message
> news:eEv5eDRsFHA.904@xxxxxxxxxxxxxxxxxxxx
> > URLDownloadToFile is a blocking function.
> >
> > To avoid hang of GUI, if to make use of the URLDownloadToFile()
> > callback, inside the callback, peek and dispatch messages waiting in
> > the message queue, then continue processing.
>
> Consider using URLOpenPullStream instead. It is fully asynchronous.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>
>
Thanks for the suggestion of using URLOpenPullStream().

MSDN says "The pull model is slightly more cumbersome than the push model,
but it allows the client to control the amount of Internet access for the
download."

How does URLOpenPullStream() "control the amount of Internet access for the
download"? Where can the amount of bytes for downloading specified?


.



Relevant Pages

  • Re: LWP module - parse one line at a time (only download part of a page)
    ... > I want to download a fairly large amount of data from a webpage ... > interested in two or three lines, I don't want to download the whole ... In particular note the existance of the callback and the bit where it ...
    (comp.lang.perl.modules)
  • URLDownloadToFile problems, and custom HTTP protocol shenanigans..
    ... This is a two question post. ... I'm using URLDownloadToFile successfully to download image files from a URL ...
    (microsoft.public.vc.language)
  • Re: Threads and notification when finished
    ... Raising events from the thread would be a typical way. ... > async callback couldn't be used in the cf 2.0. ... It depends on your internet connection how long a download ... is a special thread running or not. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: - How to save target as.. in IE6?
    ... >> If I use URLDownloadToFile, I get a blank page since viewfiles.jsp is ... I get the ability to download ... >> file but how do I stop the prompts? ...
    (microsoft.public.vb.winapi)
  • Re: URLDownloadToFile
    ... > To avoid hang of GUI, if to make use of the URLDownloadToFile() ... > callback, inside the callback, peek and dispatch messages waiting in ...
    (microsoft.public.vc.language)