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. Other Discussions
  3. Article Writing
  4. The first request

The first request

Scheduled Pinned Locked Moved Article Writing
html
2 Posts 2 Posters 11 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.
  • C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #1

    Hi Everyone, This is for both people wishing to request articles, and for people looking for ideas for new articles. I'll start it off with a request for an article: Can anyone provide a simple class to download a HTML file, with the option of setting a timeout value. (Hint: The fist bit is easy, the second requires a workaround)

    M 1 Reply Last reply
    0
    • C Chris Maunder

      Hi Everyone, This is for both people wishing to request articles, and for people looking for ideas for new articles. I'll start it off with a request for an article: Can anyone provide a simple class to download a HTML file, with the option of setting a timeout value. (Hint: The fist bit is easy, the second requires a workaround)

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

      I would download the file with URLDownloadToFile(). In your IBindStatusCallback::OnProgress() implementation, check the time and if it's been too long, return E_ABORT to halt the download. ATL also has a CBindStatusCallback class, which I just now found, but its description in the docs is a bit messy, so I'm not sure if you could use it to do what you want. --Mike-- ================== The original message was: I'll start it off with a request for an article: Can anyone provide a simple class to download a HTML file, with the option of setting a timeout value. (Hint: The fist bit is easy, the second requires a workaround)

      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