Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PostMessage Pin
Bogdan Apostol8-Jul-07 0:38
Bogdan Apostol8-Jul-07 0:38 
GeneralRe: PostMessage Pin
tom groezer8-Jul-07 4:54
tom groezer8-Jul-07 4:54 
GeneralRe: PostMessage Pin
mid=57419-Jul-07 5:30
mid=57419-Jul-07 5:30 
QuestionRe: PostMessage Pin
jbalaji849-Aug-07 21:18
jbalaji849-Aug-07 21:18 
AnswerRe: PostMessage Pin
Randor 8-Jul-07 6:57
professional Randor 8-Jul-07 6:57 
GeneralRe: PostMessage Pin
Bogdan Apostol8-Jul-07 8:59
Bogdan Apostol8-Jul-07 8:59 
GeneralRe: PostMessage Pin
Randor 8-Jul-07 9:06
professional Randor 8-Jul-07 9:06 
AnswerRe: PostMessage Pin
Bogdan Apostol8-Jul-07 10:43
Bogdan Apostol8-Jul-07 10:43 
Thanks David for the links... especially the second one!
It is interesting to see different opinions about an "old new subject" such as message queueing. We might fight over nothing here, since I kinda agree with one of the conclusions mentioned in that discussion thread: it seems to be an implementation detail. Point taken regarding the non-queueing messages! Indeed, sent messages are different since are not stored as messages posted, and also not returned by GetMessage. My logic still says that they are "somehow" queued... and how is indeed "an implementation" detail. All this confusion is set by MSDN, which is not comprehensive on the subject, and also contradicting itself in the documentation of GetQueueStatus()[^], when describing QS_SENDMESSAGE. As you well described, sent messages are different then posted ones, having higher priority, and still being queued (maybe separately, or could be inserted ahead of the posted ones) because they can't be processed by receiving thread "immediately" (as MSDN is misleading us).
Please have a look at "The Algorithm for Extracting Messages from a Thread's Queue" section at "Waking a Thread[^]" sub-chapter from a book called "Programming Applications for MS Windows, 4th edition" by Jeffrey Richter, and tell me if you agreed with what says there... at least partially. It was published by Microsoft Press[^]!
Thanks,

Bornish
ESRI Developer Network

Compilers demystified - Function pointers in Visual Basic 6.0
Enables the use of function pointers in VB6 and shows how to embed native code in a VB application.

QuestionGet exact memory usage of a process. Pin
zecodela7-Jul-07 23:03
zecodela7-Jul-07 23:03 
AnswerRe: Get exact memory usage of a process. Pin
Bogdan Apostol8-Jul-07 1:09
Bogdan Apostol8-Jul-07 1:09 
QuestionWM_COPYDATA message Pin
tom groezer7-Jul-07 22:35
tom groezer7-Jul-07 22:35 
AnswerRe: WM_COPYDATA message Pin
Bogdan Apostol8-Jul-07 1:20
Bogdan Apostol8-Jul-07 1:20 
GeneralRe: WM_COPYDATA message Pin
tom groezer8-Jul-07 5:08
tom groezer8-Jul-07 5:08 
GeneralRe: WM_COPYDATA message Pin
Randor 8-Jul-07 5:50
professional Randor 8-Jul-07 5:50 
GeneralRe: WM_COPYDATA message Pin
Bogdan Apostol8-Jul-07 8:35
Bogdan Apostol8-Jul-07 8:35 
Questionnew control icon into vc++ toobox Pin
eagle517-Jul-07 22:22
eagle517-Jul-07 22:22 
AnswerRe: new control icon into vc++ toobox Pin
David Crow9-Jul-07 3:44
David Crow9-Jul-07 3:44 
GeneralRe: new control icon into vc++ toobox Pin
eagle5110-Jul-07 23:06
eagle5110-Jul-07 23:06 
GeneralRe: new control icon into vc++ toobox Pin
David Crow11-Jul-07 2:29
David Crow11-Jul-07 2:29 
QuestionHyperTerminal script Pin
stevelizardi7-Jul-07 20:18
stevelizardi7-Jul-07 20:18 
QuestionInterprocess commmunication Pin
tom groezer7-Jul-07 11:41
tom groezer7-Jul-07 11:41 
AnswerRe: Interprocess commmunication Pin
Mark Salsbery7-Jul-07 12:10
Mark Salsbery7-Jul-07 12:10 
QuestionNotepad Pin
tom groezer7-Jul-07 11:37
tom groezer7-Jul-07 11:37 
AnswerRe: Notepad Pin
David Crow9-Jul-07 3:47
David Crow9-Jul-07 3:47 
QuestionMessage queue Pin
tom groezer7-Jul-07 11:35
tom groezer7-Jul-07 11: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.