?
Solved

Using CInternetSession for asyncronious transfers

Posted on 2001-07-01
2
Medium Priority
?
376 Views
Last Modified: 2013-11-20
In the MSDN it is described that to use CInternetSession for asyncronious transfers, you call the constructor with dwFlags set to include INTERNET_FLAG_ASYNC. However, the first line of the CInternetSession constructor is:
ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0);

Can anyone explain why this is, and how to make CInternetSession work asyncronious, without getting an assertion error ?
0
Comment
Question by:Morten from Eliten
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 150 total points
ID: 6242978
See http://support.microsoft.com/support/kb/articles/Q164/9/83.ASP ('HOWTO: Do Asynchronous WinInet with MFC Classes') - you will probably not like it, though...
0
 

Author Comment

by:Morten from Eliten
ID: 6244483
Yeah that figures. The article generally states that MFC does not support Asyncronious transfers.

You could then wonder why they bother to describe how to do an asyncronious transfer using MFC, when they allready know that it can't be done.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question