The first request
-
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)
-
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)
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)