Solved

Using CInternetSession for asyncronious transfers

Posted on 2001-07-01
2
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 50 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

627 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