Click to See Complete Forum and Search --> : Aysc Download over HTTP
Posterboy
April 26th, 1999, 10:09 AM
I need to async downloading of a file, preferly over HTTP port 80. I don't really know where yo start. I'm starting to look at The MFC inetrnet classes, but I'm not to found of linking to the MFC library. It's to big. Thanks
Remember72
July 16th, 1999, 01:06 AM
I'm doing a similiar thing. I need to be able to close the connections if they "hang" for a while.
However when I create an asynchronous CInternetSession object and then do:
OpenRequest...
AddRequestHeaders...
SendRequest...
I get an overlapped I/O pending Error when I hit SendRequest. Any ideas? Maybe sample code?
Thanks for the help!
Flagrant99
July 28th, 1999, 02:57 AM
No async support
INTERNET_FLAG_ASYNC was never supported by MFC. The presence of this flag now causes debug builds of MFC to assert
Remember72
July 28th, 1999, 05:06 PM
Thanks! I was just searching through the MSDN and found the same thing (no async with WinInet Classes). I'm rewriting my code to use WinInet APIs (it's also a multithreading app - every thread spwans it's own Internet connection, which is asynchronous) - I'm still getting pending IO error when I'm trying to use InternetReadFile. Any suggestions or simple code (for the async WinInet APIs for the HTTP files) would be greatly appreciated!
Thanks!
rodica
July 28th, 1999, 06:07 PM
Could you use URLDownloadToFile or URLDownloadToCacheFile? It has a callback you can use to interrupt the transfer.
Rodica
blacib
December 10th, 2003, 03:07 PM
Hi!
how did you solved the problem?
Any ideas, code is wellcomed!
Thanks for your answer!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.