QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: xra7en on May 16, 2021, 07:38:46 am

Title: Progress bar for downloading
Post by: xra7en on May 16, 2021, 07:38:46 am
I thought it better to start a new thread for a different topic, although it is related to my other thread
https://www.qb64.org/forum/index.php?topic=3910.0

If I switch to the API method for downloading a file, is there a way to add a progress bar? sitting with a blank screen is no fun.
Currently I am using  CURL for my app. But the API shown in the thread above actually works better.

Thanks

*nudges spriggy*
Title: Re: Progress bar for downloading
Post by: xra7en on May 16, 2021, 07:48:21 am
OK peeking into this structure,

lpfnCB

last parameter is for progress, just trying to figure out how to make that work in qb64..
Title: Re: Progress bar for downloading
Post by: SpriggsySpriggs on May 16, 2021, 10:57:08 am
If it is a text file, it shouldn't be too large, right? How big is it? Most text files I downloaded with it were almost instantly downloaded.
Title: Re: Progress bar for downloading
Post by: xra7en on May 16, 2021, 08:40:10 pm
o you got that in another post.. ya txt files are instant. I wanted to implement this api with larger zip/exe/arj/rar/msi etc.. files