|
-
April 26th, 1999, 10:09 AM
#1
Aysc Download over HTTP
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
-
July 16th, 1999, 01:06 AM
#2
Have you found the answer?
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!
-
July 28th, 1999, 02:57 AM
#3
Re: Have you found the answer?
No async support
INTERNET_FLAG_ASYNC was never supported by MFC. The presence of this flag now causes debug builds of MFC to assert
-
July 28th, 1999, 05:06 PM
#4
Re: Have you found the answer?
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!
-
July 28th, 1999, 06:07 PM
#5
Re: Have you found the answer?
Could you use URLDownloadToFile or URLDownloadToCacheFile? It has a callback you can use to interrupt the transfer.
Rodica
-
December 10th, 2003, 04:07 PM
#6
Hi!
how did you solved the problem?
Any ideas, code is wellcomed!
Thanks for your answer!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|