flat assembler
Message board for the users of flat assembler.

Index > Windows > URLDownloadToFile with progressbar?

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Hi!
I know how to use URLDownloadToFile API from urlmon.dll to download files.
But how to use the callback to show the download progress?

Thanks
Post 05 Oct 2006, 16:45
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Impossible. Use a more complex set of APIs (WinInet/WinHttp)
Post 07 Oct 2006, 15:57
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32
I am just programming an alternative to winsock with a built
in HTTP GET/POST CLIENT and BINARY and TEXT/PLAINTEXT
handling. It will be finished in 1h.
Post 07 Oct 2006, 19:00
View user's profile Send private message Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32
@OzzY:
do you want it?
Post 08 Oct 2006, 15:10
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Yes, thanks!
I'm looking for a way to download files with progress bar. Tried URLDownloadToFile and WinInet API with no sucess.
If you think it can help me than I'd like to see your code.
Post 08 Oct 2006, 16:44
View user's profile Send private message Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32
I just have an idea.
You can use winsock and binarymode

you can set the progressbar value everytime to the filesize
and the current percentage to the bytesTotal value of winsock.

If you want i can make a .dll for external usage
Post 08 Oct 2006, 17:10
View user's profile Send private message Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32
here is my example
http://netbone.ath.cx/http_download.exe

is that what you want?
Post 08 Oct 2006, 17:23
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.