|
-
Aug 25th, 2007, 06:52 PM
#1
Thread Starter
Fanatic Member
Get the Progress of URLDownloadtoFile
I am making an update feature for my program. I am using the API URLDownloadtoFile to download the file I need downloaded. I was wondering, how could I possibly get the progress of the file being downloaded?
If a post has been helpful please rate it. 
If your question has been answered, pull down the tread tools and mark it as resolved.
-
Aug 25th, 2007, 08:18 PM
#2
Re: Get the Progress of URLDownloadtoFile
I don't think you can using the URLDownloadtoFile API.
Try the Inet control with progress bar
-
Aug 25th, 2007, 08:34 PM
#3
Thread Starter
Fanatic Member
Re: Get the Progress of URLDownloadtoFile
I knew I could do that, but unfortunately inet is slower than the API. I know there is a way to do it, but the only way I know of adds a couple hundred KB to your program.
If a post has been helpful please rate it. 
If your question has been answered, pull down the tread tools and mark it as resolved.
-
Aug 25th, 2007, 08:42 PM
#4
Re: Get the Progress of URLDownloadtoFile
this is one of the parameters urldownloadtofile
from allapi
· lpfnCB
Address of the caller's IBindStatusCallback interface. URLDownloadToFile calls this interface's IBindStatusCallback::OnProgress method on a connection activity, including the arrival of data. IBindStatusCallback::OnDataAvailable is never called. Implementing IBindStatusCallback::OnProgress allows a caller to implement a user interface or other progress monitoring functionality. It also allows the download operation to be canceled by returning E_ABORT from the IBindStatusCallback::OnProgress call. This can be set to NULL.
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 25th, 2007, 08:54 PM
#5
Re: Get the Progress of URLDownloadtoFile
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|