Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using CInternetSession for asyncronious transfers

Posted on 2001-07-01
2
Medium Priority
?
375 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 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

688 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