Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get Domain Role Pin
David Crow29-Oct-07 4:20
David Crow29-Oct-07 4:20 
QuestionCAsyncSocket and Message Pump Pin
Don Rolando26-Oct-07 10:30
Don Rolando26-Oct-07 10:30 
AnswerRe: CAsyncSocket and Message Pump Pin
Mark Salsbery26-Oct-07 12:10
Mark Salsbery26-Oct-07 12:10 
GeneralRe: CAsyncSocket and Message Pump Pin
Don Rolando26-Oct-07 20:20
Don Rolando26-Oct-07 20:20 
GeneralRe: CAsyncSocket and Message Pump [modified] Pin
Don Rolando26-Oct-07 21:51
Don Rolando26-Oct-07 21:51 
GeneralRe: CAsyncSocket and Message Pump Pin
Mark Salsbery27-Oct-07 6:57
Mark Salsbery27-Oct-07 6:57 
GeneralRe: CAsyncSocket and Message Pump Pin
Moak8-Nov-07 12:03
Moak8-Nov-07 12:03 
GeneralRe: CAsyncSocket and Message Pump Pin
Blake Miller20-Nov-07 6:53
Blake Miller20-Nov-07 6:53 
Okay, you need to call
::PeekMessage(NULL, 0, 0, 0, PM_NOREMOVE);
to get the message pump started for your thread.

See if that helps. If not, then your thread does not have a 'primary message pump handler' and may be accumulating messages but does not know how to dispatch them. In that case, after you create the CAsynchSocket object, try to locate its hidden window and associate it as the main window of your application.

An alternative is to refactor the CAsynchSocket class to use window events for signaling instead of window messages, and your entire problem might be solved.

QuestionCHtmlView - how to get session Pin
m1m226-Oct-07 8:49
m1m226-Oct-07 8:49 
QuestionProgram terminates Pin
pourang26-Oct-07 8:28
pourang26-Oct-07 8:28 
AnswerRe: Program terminates [modified] Pin
Chris Losinger26-Oct-07 8:31
professionalChris Losinger26-Oct-07 8:31 
GeneralRe: Program terminates Pin
pourang26-Oct-07 8:34
pourang26-Oct-07 8:34 
GeneralRe: Program terminates Pin
pourang26-Oct-07 8:36
pourang26-Oct-07 8:36 
QuestionRe: Program terminates Pin
David Crow26-Oct-07 8:37
David Crow26-Oct-07 8:37 
AnswerRe: Program terminates Pin
Chris Losinger26-Oct-07 9:10
professionalChris Losinger26-Oct-07 9:10 
QuestionCWinApp::OnIdle problem?? Pin
SandipG 26-Oct-07 8:01
SandipG 26-Oct-07 8:01 
QuestionDialog based application for different screen resolutions Pin
victoria195026-Oct-07 7:47
victoria195026-Oct-07 7:47 
AnswerRe: Dialog based application for different screen resolutions [modified] Pin
Mattias G26-Oct-07 13:41
Mattias G26-Oct-07 13:41 
AnswerRe: Dialog based application for different screen resolutions Pin
MANISH RASTOGI26-Oct-07 18:52
MANISH RASTOGI26-Oct-07 18:52 
AnswerRe: Dialog based application for different screen resolutions Pin
Nelek28-Oct-07 23:24
protectorNelek28-Oct-07 23:24 
QuestionLink error _imp_ Pin
ewpendleton26-Oct-07 6:44
ewpendleton26-Oct-07 6:44 
QuestionRe: Link error _imp_ Pin
Hamid_RT26-Oct-07 7:02
Hamid_RT26-Oct-07 7:02 
AnswerRe: Link error _imp_ Pin
ewpendleton26-Oct-07 9:26
ewpendleton26-Oct-07 9:26 
AnswerRe: Link error _imp_ Pin
Chris Losinger26-Oct-07 9:15
professionalChris Losinger26-Oct-07 9:15 
Questioncompile error,please help me, Pin
nhathoang26-Oct-07 5:48
nhathoang26-Oct-07 5:48 

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.