Results 1 to 14 of 14

Thread: VB6-MultiThread Download

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,674

    VB6-MultiThread Download

    Attached is a simplified Multithreading example based on this download:
    https://www.vbforums.com/attachment....3&d=1458791120

    That project used winhttp.dll which had serious limitations, so I used wininet.dll instead as outlined here:
    https://www.vbforums.com/showthread....-in-VB6-part-1

    It was then tested in the IDE as well as compiled with the following results:
    Start Thread1 33381.81
    Start Thread2 33382.23
    End Thread2 33382.27
    End Thread1 33382.32
    Download 1 is a 180 KB jpg file - elapsed time 510 ms
    Download 2 is a 1 KB page file - elapsed time 40 ms

    Thread2 using https:
    Start Thread2 33715.95
    End Thread2 33716.29 - 340 ms

    Note: I found "exename" to be unreliable, so the executable name is located in the Project Properties Version Information under File Description. If you change the executable name, be sure to change the File Description as well.

    J.A. Coutts

    Updated: 09/18/2023 - See post #12 for details.
    Attached Files Attached Files
    Last edited by couttsj; Sep 18th, 2023 at 11:09 AM.

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