Results 1 to 35 of 35

Thread: VB Downloader. Download files from the web, with prog bar.

Threaded View

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    VB Downloader. Download files from the web, with prog bar.

    There are 2 downloader projects attached here. 1 asynchronous project and 1 synchronous project.

    The synchronous downloader, vbDownloader.zip, uses the URLDownload API and uses call backs to allow the user to cancel the download and/or show a prog bar.

    For this project to work you need to do the following:

    Attached is code, plus a demo app, that allows you to download files from the web.
    This can be used for auto updates for a client exe etc, or just as a download manager.

    One thing you need to do is download the file:

    http://www.mvps.org/emorcillo/download/vb6/tl_ole.zip

    and extract the 2 tlb files and install them using the instructions provided.

    These tlb files are used for the call back to allow the download to be shown in a progress bar, and to allow the user to cancel the download.



    The 2nd project "Downloader and Winsock.zip" is an asynchronous downloader that uses a DLL version of the winsock control.
    This has a few benefits over the URLDownload method. 1stly it's asynchronous and there you can have multiple downloads at any one time in your app, plus it allows you to use your app while downloading. It also allows you to get the file size of the file before you download it. This I find is very usefull.
    However, the URLDownload example allows you to cache the file in the internet cache folder....this can be handy. The winsock does not cache any of the file, and if the download is aborted cancelled you will have to download the whole file from scratch.

    Pick ya method

    Woka
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width