Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grab URL from net to file
#2
You can get progress information by providing an implementation of the `IBindStatusCallback` interface to the `lpfnCB` parameter. This can't be done via QB64 alone though, you'd need to write some C++ code to implement the interface and then you could pass the progress information back to QB64.

That said, recent QB64-PE versions have native HTTP support which you could use in place of `URLDownloadToFile` and would allow you to display progress information. See Examples 2 and 4 on the Wiki page about it, they show examples of displaying the progress of the download as it is happening, and also downloading directly to a file (where you write to the file as you receive the data).
Reply


Messages In This Thread
Grab URL from net to file - by eoredson - 10-28-2023, 04:30 AM
RE: Grab URL from net to file - by DSMan195276 - 10-28-2023, 04:45 AM
RE: Grab URL from net to file - by eoredson - 10-28-2023, 04:51 AM
RE: Grab URL from net to file - by eoredson - 10-31-2023, 07:22 AM
RE: Grab URL from net to file - by TerryRitchie - 10-31-2023, 01:43 PM
RE: Grab URL from net to file - by eoredson - 11-01-2023, 05:44 AM



Users browsing this thread: 1 Guest(s)