Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Funnily enough it works ok with the MessageBoxes linked out!

I've added ReplyMessage as follows:-

LRESULT CMainFrame::OnError(WPARAM wParam, LPARAM lParam)
{
if (InSendMessage())
ReplyMessage(TRUE);

switch (wParam)
{
case 1:
AfxMessageBox("Error 1 - Press OK");
break;
case 2:
AfxMessageBox("Error 2 - Press OK");
break;
}
return 0;
}

and it works just fine, whats the difference between this and just using PostMessage though? Is it because it waits until the message is starting to be processed before replying and allowing the calling thread continue, where PostMessage just posts the message before allowing the calling thread to continue even though its possible that the message may not be processed?
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 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
Tim Craig20-Jan-10 12:55
Tim Craig20-Jan-10 12:55 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
CPallini20-Jan-10 21:32
mveCPallini20-Jan-10 21:32 
QuestionMessage Removed Pin
19-Jan-10 22:40
Mishgun5619-Jan-10 22:40 

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.