Click here to Skip to main content
14,425,979 members

C / C++ / MFC

 
Questionproblem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 4:14
Memberhung2h20-Jan-10 4:14 
AnswerRe: problem with stack structure implementation in C, plz help !!! Pin
Richard MacCutchan20-Jan-10 4:38
communityengineerRichard MacCutchan20-Jan-10 4:38 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 4:52
Memberhung2h20-Jan-10 4:52 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 5:07
Memberhung2h20-Jan-10 5:07 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
Tim Craig20-Jan-10 13:45
MemberTim Craig20-Jan-10 13:45 
GeneralRe: problem with stack structure implementation in C, plz help !!! Pin
hung2h20-Jan-10 18:57
Memberhung2h20-Jan-10 18:57 
QuestionPostMessage vs SendMessage Pin
Caslen20-Jan-10 3:17
MemberCaslen20-Jan-10 3:17 
AnswerRe: PostMessage vs SendMessage Pin
CPallini20-Jan-10 3:44
mveCPallini20-Jan-10 3: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 4:26
MemberCaslen20-Jan-10 4:26 
GeneralRe: PostMessage vs SendMessage Pin
CPallini20-Jan-10 4:28
mveCPallini20-Jan-10 4:28 
GeneralRe: PostMessage vs SendMessage Pin
Caslen20-Jan-10 6:12
MemberCaslen20-Jan-10 6:12 
GeneralRe: PostMessage vs SendMessage Pin
Joe Woodbury20-Jan-10 7:36
professionalJoe Woodbury20-Jan-10 7:36 
GeneralRe: PostMessage vs SendMessage Pin
Caslen20-Jan-10 10:08
MemberCaslen20-Jan-10 10:08 
GeneralRe: PostMessage vs SendMessage Pin
Joe Woodbury20-Jan-10 10:46
professionalJoe Woodbury20-Jan-10 10:46 
Questionfind folder list on a root folder Pin
Game-point20-Jan-10 2:59
MemberGame-point20-Jan-10 2:59 
QuestionRe: find folder list on a root folder Pin
David Crow20-Jan-10 3:50
MemberDavid Crow20-Jan-10 3:50 
AnswerRe: find folder list on a root folder Pin
Richard MacCutchan20-Jan-10 3:50
communityengineerRichard MacCutchan20-Jan-10 3:50 
AnswerRe: find folder list on a root folder Pin
Graham Breach20-Jan-10 3:54
MemberGraham Breach20-Jan-10 3:54 
QuestionWhat is Data Directory in PE file format ? Why? Pin
glitteringsound20-Jan-10 1:52
Memberglitteringsound20-Jan-10 1:52 
QuestionRe: What is Data Directory in PE file format ? Why? Pin
David Crow20-Jan-10 3:51
MemberDavid Crow20-Jan-10 3:51 
AnswerRe: What is Data Directory in PE file format ? Why? Pin
Richard MacCutchan20-Jan-10 3:53
communityengineerRichard MacCutchan20-Jan-10 3:53 
Questionproblem with stack structure in C++(using pointer), plz help !!! Pin
hung2h20-Jan-10 0:00
Memberhung2h20-Jan-10 0:00 
AnswerRe: problem with stack structure in C++(using pointer), plz help !!! Pin
Cedric Moonen20-Jan-10 0:28
MemberCedric Moonen20-Jan-10 0:28 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
hung2h20-Jan-10 0:43
Memberhung2h20-Jan-10 0:43 
AnswerRe: problem with stack structure in C++(using pointer), plz help !!! Pin
CPallini20-Jan-10 0:44
mveCPallini20-Jan-10 0: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.