Progress Bar

This is a discussion on Progress Bar within the Windows Programming forums, part of the Platform Specific Boards category; I have started to make this program that uses URLDownloadToFile() to download files off the net. It download fine and ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Location
    under your bed....
    Posts
    24

    Progress Bar

    I have started to make this program that uses URLDownloadToFile() to download files off the net. It download fine and everything, now i am up to the stage of trying to get a progress bar to work for the downloads.

    The syntex for URLDownloadToFile is:

    Code:
    HRESULT URLDownloadToFile(      
        LPUNKNOWN pCaller,
        LPCTSTR szURL,
        LPCTSTR szFileName,
        DWORD dwReserved,
        LPBINDSTATUSCALLBACK lpfnCB
    );
    I know getting the progress bar to work has something to do with the 5th parameter and using callback, i'm just not sure what to do...

    I am using c. in my resource file i have a progress bar control:

    Code:
    CONTROL "",IDC_PROGRESS,"msctls_progress32",WS_CHILD|WS_VISIBLE,2,168,280,15
    Does anyone know how to do this, thx in advance

  2. #2
    Registered User
    Join Date
    Apr 2007
    Posts
    137

  3. #3
    Registered User
    Join Date
    Nov 2006
    Location
    under your bed....
    Posts
    24
    wat program do i need to open that address?

  4. #4
    Registered User Welder's Avatar
    Join Date
    Oct 2007
    Location
    Washington
    Posts
    100
    Outlook express

  5. #5
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Maybe this link can be of some help to you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Updating a progress bar
    By NewGuy100 in forum C++ Programming
    Replies: 2
    Last Post: 03-13-2006, 12:00 PM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 12:32 PM
  3. Is comctl32.lib required for progress bar controls?
    By JasonD in forum Windows Programming
    Replies: 4
    Last Post: 08-28-2004, 02:30 PM
  4. progress bar newbie
    By WaterNut in forum Windows Programming
    Replies: 18
    Last Post: 08-09-2004, 01:42 PM
  5. File Through Winsock & Progress on bar
    By (TNT) in forum Windows Programming
    Replies: 4
    Last Post: 12-05-2001, 09:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21