Click here to Skip to main content
15,915,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage causing hang... Pin
Nilesh K.1-Jun-05 16:49
Nilesh K.1-Jun-05 16:49 
GeneralRe: PostMessage causing hang... Pin
Ian Bowler1-Jun-05 16:57
Ian Bowler1-Jun-05 16:57 
GeneralRe: PostMessage causing hang... Pin
Nilesh K.1-Jun-05 17:02
Nilesh K.1-Jun-05 17:02 
GeneralRe: PostMessage causing hang... Pin
Ian Bowler1-Jun-05 17:04
Ian Bowler1-Jun-05 17:04 
GeneralRe: PostMessage causing hang... Pin
Nilesh K.1-Jun-05 17:14
Nilesh K.1-Jun-05 17:14 
GeneralRe: PostMessage causing hang... Pin
Ian Bowler1-Jun-05 17:19
Ian Bowler1-Jun-05 17:19 
GeneralRe: PostMessage causing hang... Pin
Nilesh K.1-Jun-05 17:31
Nilesh K.1-Jun-05 17:31 
GeneralRe: PostMessage causing hang... Pin
ThatsAlok1-Jun-05 18:38
ThatsAlok1-Jun-05 18:38 
Nilesh K. wrote:
PostMessage();
//this message box would get displayed only when the lengthy operation of
//ReceiverOfPostMessage function gets over, This is called a blocking call
AfxMessageBox("");

SendMessage();
//this message box would immediately get displayed and would not wait for the
//operation of ReceiverOfPostMessage to get over
AfxMessageBox("");


Are you jokin!, have you consulted MSDN before writing difference between PostMessage and SendMessage Here! or try to run above code in your compiler!

The Defination is actually reverse!, SendMesssage Block the call and PostMessage Return immedietly.



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
GeneralRe: PostMessage causing hang... Pin
Nilesh K.1-Jun-05 19:15
Nilesh K.1-Jun-05 19:15 
GeneralRe: PostMessage causing hang... Pin
ThatsAlok1-Jun-05 19:19
ThatsAlok1-Jun-05 19:19 
GeneralRe: PostMessage causing hang... Pin
S. Senthil Kumar2-Jun-05 0:02
S. Senthil Kumar2-Jun-05 0:02 
GeneralRe: PostMessage causing hang... Pin
S. Senthil Kumar1-Jun-05 23:57
S. Senthil Kumar1-Jun-05 23:57 
GeneralDynamically updating property sheets or formviews Pin
connere241-Jun-05 15:29
connere241-Jun-05 15:29 
Questionhow to cancel the closing of an application Pin
elephantstar1-Jun-05 13:38
elephantstar1-Jun-05 13:38 
AnswerRe: how to cancel the closing of an application Pin
Christian Graus1-Jun-05 13:47
protectorChristian Graus1-Jun-05 13:47 
AnswerRe: how to cancel the closing of an application Pin
Stlan1-Jun-05 19:55
Stlan1-Jun-05 19:55 
GeneralMS Access and MFC Pin
Tom Wright1-Jun-05 12:03
Tom Wright1-Jun-05 12:03 
GeneralRe: MS Access and MFC Pin
Michael P Butler1-Jun-05 12:38
Michael P Butler1-Jun-05 12:38 
Question::myFunc ? Pin
Anonymous1-Jun-05 10:03
Anonymous1-Jun-05 10:03 
AnswerRe: ::myFunc ? Pin
Roland Pibinger1-Jun-05 10:09
Roland Pibinger1-Jun-05 10:09 
AnswerRe: ::myFunc ? Pin
Nilesh K.1-Jun-05 17:47
Nilesh K.1-Jun-05 17:47 
AnswerRe: ::myFunc ? Pin
toxcct1-Jun-05 21:08
toxcct1-Jun-05 21:08 
GeneralRe: ::myFunc ? Pin
trelliot3-Jun-05 20:45
trelliot3-Jun-05 20:45 
GeneralExecuting a program from within mine Pin
Anonymous1-Jun-05 9:23
Anonymous1-Jun-05 9:23 
GeneralRe: Executing a program from within mine Pin
ddmcr1-Jun-05 9:35
ddmcr1-Jun-05 9:35 

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.