how does the UIThread and worker thread communicates and
handle events
Answers were Sorted based on User's Feedback
Answer / vikram
UI thread and Worker thread can communicate with each other using SendMessage() or PostMessage().SendMessage() returns when the message is used by the Thread. PostMessage Returns immediately. These two method require Window handle of the UI Thread.
One can also use PostThreadMessage(thread id, message).here UI thread id is required.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vishnu
Worker threads are used to process in back and can not
modify any user interface directly.
Ex: Used to calculate some complicated calculations.
UI threads can change user interface directly
Ex: Used to change UI display images in windows MFC
application
| Is This Answer Correct ? | 1 Yes | 3 No |
19)how to set Back Ground Picture to a Dialog Box in MFC ?
What is primitive and non-primitive application?
How can update edit control data of an executing application from other application?
What is the difference between regular dlls and extended dlls?
What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example
1)How to change a text of a button as Dynamically?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
What is LPCTSTR? What does LP denote it?
how do u identify RTTI in vc++
Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);
How to update windows title bar dynamically?
What is userdefine Messages in MFC?