Click here to Skip to main content
15,894,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRegarding MAPI Pin
Sameerkumar Namdeo13-May-07 20:58
Sameerkumar Namdeo13-May-07 20:58 
JokeRe: Regarding MAPI Pin
Rajesh R Subramanian13-May-07 22:19
professionalRajesh R Subramanian13-May-07 22:19 
QuestionSockets communication between Internal and external IPs Pin
namithakathi13-May-07 20:58
namithakathi13-May-07 20:58 
AnswerRe: Sockets communication between Internal and external IPs Pin
kasturi_haribabu13-May-07 23:37
kasturi_haribabu13-May-07 23:37 
AnswerRe: Sockets communication between Internal and external IPs Pin
Moak14-May-07 2:13
Moak14-May-07 2:13 
QuestionSendMessage problem ????? Pin
amitmistry_petlad 13-May-07 20:15
amitmistry_petlad 13-May-07 20:15 
AnswerRe: SendMessage problem ????? Pin
Cedric Moonen13-May-07 20:43
Cedric Moonen13-May-07 20:43 
AnswerRe: SendMessage problem ????? Pin
Stephen Hewitt13-May-07 20:50
Stephen Hewitt13-May-07 20:50 
Firstly this line looks funny:
WaitForMultipleObjects(2, hThread, FALSE, INFINITE);

If hThread is thread HANDLE, as the Hungarian prefix suggests, then this should not compile. It looks like you're just waiting on one HANDLE. I'd guess hThread is a pointer to an array of HANDLEs: if this is the case the "h" prefix is confusing and will throw programmers that are aware of Hungarian prefixes.

Secondly, no message pump is running so the SendMessage in the worker thread will (and should) block. What you need is the MsgWaitForMultipleObjects function. Look in the ATL source code in the function AtlWaitWithMessageLoop for an example of its usage.

Steve

GeneralRe: SendMessage problem ????? Pin
amitmistry_petlad 13-May-07 22:50
amitmistry_petlad 13-May-07 22:50 
AnswerRe: SendMessage problem ????? Pin
Michael Dunn13-May-07 20:54
sitebuilderMichael Dunn13-May-07 20:54 
GeneralRe: SendMessage problem ????? Pin
amitmistry_petlad 13-May-07 22:43
amitmistry_petlad 13-May-07 22:43 
GeneralRe: SendMessage problem ????? Pin
Roger Stoltz13-May-07 23:22
Roger Stoltz13-May-07 23:22 
GeneralRe: SendMessage problem ????? Pin
amitmistry_petlad 13-May-07 23:33
amitmistry_petlad 13-May-07 23:33 
GeneralRe: SendMessage problem ????? Pin
Michael Dunn14-May-07 8:21
sitebuilderMichael Dunn14-May-07 8:21 
GeneralRe: SendMessage problem ????? Pin
amitmistry_petlad 15-May-07 19:19
amitmistry_petlad 15-May-07 19:19 
QuestionPrimary Domain Controller Name and local workstation Name?? Pin
umarcool13-May-07 20:07
umarcool13-May-07 20:07 
AnswerRe: Primary Domain Controller Name and local workstation Name?? Pin
kasturi_haribabu14-May-07 0:22
kasturi_haribabu14-May-07 0:22 
QuestionHow to get ID of cntrols used in FileOpen DialogBox. Pin
Atul2313-May-07 19:37
Atul2313-May-07 19:37 
AnswerRe: How to get ID of cntrols used in FileOpen DialogBox. Pin
David Crow14-May-07 3:23
David Crow14-May-07 3:23 
QuestionPreprocessor directives and Preprocessor Pin
Sonia Gupta13-May-07 19:23
Sonia Gupta13-May-07 19:23 
AnswerRe: Preprocessor directives and Preprocessor Pin
Michael Dunn13-May-07 20:57
sitebuilderMichael Dunn13-May-07 20:57 
QuestionSelf assignment Pin
ragavan13-May-07 18:56
ragavan13-May-07 18:56 
AnswerRe: Self assignment Pin
prasad_som13-May-07 19:13
prasad_som13-May-07 19:13 
AnswerRe: Self assignment Pin
led mike13-May-07 19:23
led mike13-May-07 19:23 
AnswerRe: Self assignment Pin
Moak14-May-07 0:28
Moak14-May-07 0:28 

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.