Click here to Skip to main content
15,906,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with UI Pin
PJ Arends3-May-02 10:45
professionalPJ Arends3-May-02 10:45 
GeneralRe: Help with UI Pin
Steve L.3-May-02 11:10
Steve L.3-May-02 11:10 
GeneralCView: Control colors Pin
Anton A. Loukine3-May-02 10:37
Anton A. Loukine3-May-02 10:37 
GeneralRe: CView: Control colors Pin
Nish Nishant3-May-02 14:00
sitebuilderNish Nishant3-May-02 14:00 
GeneralRe: CView: Control colors Pin
Stan the man3-May-02 17:00
Stan the man3-May-02 17:00 
GeneralResolving Hostname Using getaddrinfo(...) :: Winsock Pin
valikac3-May-02 10:27
valikac3-May-02 10:27 
GeneralRe: Solution Pin
valikac3-May-02 16:40
valikac3-May-02 16:40 
Questiondoes this ASSERT make sense to you? Pin
3-May-02 9:13
suss3-May-02 9:13 
Hi,

It appears I ran into a bit of a contradiction.

According to the documentation for CInternetSession, you should be able to make your internet operations asynchronous and set up a callback to report on the status of the operations.

One of the requirements for this, is that:

In the CInternetSession constructor, dwFlags must include INTERNET_FLAG_ASYNC.

However, the first line of code in that constructor is:

ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0);

My logical skills may be failing me, but that code tries to assert that dwFlags does NOT include INTERNET_FLAG_ASYNC, right?

So I have to set the flag, but I'm not allowed to set the flag. What's up with that? Or am I missing something?

All input appreciated,

Ren


AnswerRe: does this ASSERT make sense to you? Pin
Jack Handy3-May-02 9:33
Jack Handy3-May-02 9:33 
AnswerRe: does this ASSERT make sense to you? Pin
Ravi Bhavnani3-May-02 9:47
professionalRavi Bhavnani3-May-02 9:47 
GeneralRe: does this ASSERT make sense to you? Pin
3-May-02 11:05
suss3-May-02 11:05 
GeneralCPropertySheet change Cancel Button Pin
moobob3-May-02 9:01
moobob3-May-02 9:01 
GeneralRe: CPropertySheet change Cancel Button Pin
Tim Smith3-May-02 9:05
Tim Smith3-May-02 9:05 
GeneralRe: CPropertySheet change Cancel Button Pin
moobob3-May-02 9:39
moobob3-May-02 9:39 
GeneralRe: CPropertySheet change Cancel Button Pin
Tim Smith3-May-02 9:55
Tim Smith3-May-02 9:55 
QuestionHow does net start service_name.exe call the service? Pin
Craig Miller3-May-02 8:50
Craig Miller3-May-02 8:50 
AnswerRe: How does net start service_name.exe call the service? Pin
Tim Smith3-May-02 9:03
Tim Smith3-May-02 9:03 
GeneralRe: How does net start service_name.exe call the service? Pin
Craig Miller3-May-02 9:42
Craig Miller3-May-02 9:42 
GeneralRe: How does net start service_name.exe call the service? Pin
Tim Smith3-May-02 9:59
Tim Smith3-May-02 9:59 
GeneralRe: How does net start service_name.exe call the service? Pin
Craig Miller3-May-02 10:13
Craig Miller3-May-02 10:13 
GeneralRe: How does net start service_name.exe call the service? Pin
Tim Smith3-May-02 10:36
Tim Smith3-May-02 10:36 
GeneralRe: How does net start service_name.exe call the service? Pin
Craig Miller3-May-02 11:44
Craig Miller3-May-02 11:44 
GeneralTest my new hash algorithm Pin
Dominik Reichl3-May-02 8:42
Dominik Reichl3-May-02 8:42 
GeneralRe: Test my new hash algorithm Pin
Tim Smith3-May-02 9:08
Tim Smith3-May-02 9:08 
GeneralRe: Test my new hash algorithm Pin
Dominik Reichl3-May-02 9:12
Dominik Reichl3-May-02 9:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.