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?
Printable View
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?
I don't think you can using the URLDownloadtoFile API.
Try the Inet control with progress bar :thumb:
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.
this is one of the parameters urldownloadtofile
from allapi
Quote:
ยท 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.
See if this helps:
http://forums.devx.com/showthread.php?t=38705