Click here to Skip to main content
15,884,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionproblem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 3:14
hung2h20-Jan-10 3:14 
AnswerRe: problem with stack structure implementation in C, plz help !!! Pin
Richard MacCutchan20-Jan-10 3:38
mveRichard MacCutchan20-Jan-10 3:38 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 3:52
hung2h20-Jan-10 3:52 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 4:07
hung2h20-Jan-10 4:07 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
Tim Craig20-Jan-10 12:45
Tim Craig20-Jan-10 12:45 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 17:57
hung2h20-Jan-10 17:57 
QuestionPostMessage vs SendMessage Pin
Caslen20-Jan-10 2:17
Caslen20-Jan-10 2:17 
AnswerRe: PostMessage vs SendMessage Pin
CPallini20-Jan-10 2:44
mveCPallini20-Jan-10 2:44 
I suppose you hit this [^]:

Message Deadlocks

A thread that calls the SendMessage function to send a message to another thread cannot continue executing until the window procedure that receives the message returns. If the receiving thread yields control while processing the message, the sending thread cannot continue executing, because it is waiting for SendMessage to return. If the receiving thread is attached to the same queue as the sender, it can cause an application deadlock to occur. (Note that journal hooks attach threads to the same queue.)

Note that the receiving thread need not yield control explicitly; calling any of the following functions can cause a thread to yield control implicitly.

* DialogBox
* DialogBoxIndirect
* DialogBoxIndirectParam
* DialogBoxParam
* GetMessage
* MessageBox
* PeekMessage
* SendMessage


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: PostMessage vs SendMessage Pin
Caslen20-Jan-10 3:26
Caslen20-Jan-10 3:26 
GeneralRe: PostMessage vs SendMessage Pin
CPallini20-Jan-10 3:28
mveCPallini20-Jan-10 3:28 
GeneralRe: PostMessage vs SendMessage Pin
Caslen20-Jan-10 5:12
Caslen20-Jan-10 5:12 
GeneralRe: PostMessage vs SendMessage Pin
Joe Woodbury20-Jan-10 6:36
professionalJoe Woodbury20-Jan-10 6:36 
GeneralRe: PostMessage vs SendMessage Pin
Caslen20-Jan-10 9:08
Caslen20-Jan-10 9:08 
GeneralRe: PostMessage vs SendMessage Pin
Joe Woodbury20-Jan-10 9:46
professionalJoe Woodbury20-Jan-10 9:46 
Questionfind folder list on a root folder Pin
Game-point20-Jan-10 1:59
Game-point20-Jan-10 1:59 
QuestionRe: find folder list on a root folder Pin
David Crow20-Jan-10 2:50
David Crow20-Jan-10 2:50 
AnswerRe: find folder list on a root folder Pin
Richard MacCutchan20-Jan-10 2:50
mveRichard MacCutchan20-Jan-10 2:50 
AnswerRe: find folder list on a root folder Pin
Graham Breach20-Jan-10 2:54
Graham Breach20-Jan-10 2:54 
QuestionWhat is Data Directory in PE file format ? Why? Pin
glitteringsound20-Jan-10 0:52
glitteringsound20-Jan-10 0:52 
QuestionRe: What is Data Directory in PE file format ? Why? Pin
David Crow20-Jan-10 2:51
David Crow20-Jan-10 2:51 
AnswerRe: What is Data Directory in PE file format ? Why? Pin
Richard MacCutchan20-Jan-10 2:53
mveRichard MacCutchan20-Jan-10 2:53 
Questionproblem with stack structure in C++(using pointer), plz help !!! Pin
hung2h19-Jan-10 23:00
hung2h19-Jan-10 23:00 
AnswerRe: problem with stack structure in C++(using pointer), plz help !!! Pin
Cedric Moonen19-Jan-10 23:28
Cedric Moonen19-Jan-10 23:28 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
hung2h19-Jan-10 23:43
hung2h19-Jan-10 23:43 
AnswerRe: problem with stack structure in C++(using pointer), plz help !!! Pin
CPallini19-Jan-10 23:44
mveCPallini19-Jan-10 23:44 

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.