Author Topic: Progress bar for downloading  (Read 2582 times)

0 Members and 1 Guest are viewing this topic.

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Progress bar for downloading
« 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*
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: Progress bar for downloading
« Reply #1 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..
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Progress bar for downloading
« Reply #2 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.
Shuwatch!

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: Progress bar for downloading
« Reply #3 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
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!