Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Download a file using HTTP?

Download a file using HTTP?

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mahesh
    wrote on last edited by
    #1

    I want to download a file using WinInet API/MFC. I can't use FTP. File might be any type such as bmp, dwg, or doc. Any ideas??? Thanks in advance.

    M 1 Reply Last reply
    0
    • M mahesh

      I want to download a file using WinInet API/MFC. I can't use FTP. File might be any type such as bmp, dwg, or doc. Any ideas??? Thanks in advance.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      If you can count on your target systems having IE 3 or later, use the function URLDownloadToFile(). I even have an article on how to use this function. :)

      M 1 Reply Last reply
      0
      • M Michael Dunn

        If you can count on your target systems having IE 3 or later, use the function URLDownloadToFile(). I even have an article on how to use this function. :)

        M Offline
        M Offline
        mahesh
        wrote on last edited by
        #3

        I ran your exe. I got error download failed: Error 80004004 during download. I tried to download asp and dwg files. I tried to download file http://www.mindcracker.com/my/mh.dwg Any ideas? Thanks for your help. Mahesh

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups