Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to disable top level menu on a dialog box Pin
msr_codeproject25-Sep-07 0:30
msr_codeproject25-Sep-07 0:30 
AnswerRe: How to disable top level menu on a dialog box Pin
Nishad S25-Sep-07 0:47
Nishad S25-Sep-07 0:47 
AnswerRe: How to disable top level menu on a dialog box Pin
Nelek25-Sep-07 0:48
protectorNelek25-Sep-07 0:48 
QuestionCan we get Username of the person who is logged into the system? Pin
megha_gharote25-Sep-07 0:22
megha_gharote25-Sep-07 0:22 
AnswerRe: Can we get Username of the person who is logged into the system? Pin
Nishad S25-Sep-07 0:53
Nishad S25-Sep-07 0:53 
GeneralRe: Can we get Username of the person who is logged into the system? Pin
megha_gharote25-Sep-07 1:12
megha_gharote25-Sep-07 1:12 
GeneralRe: Can we get Username of the person who is logged into the system? Pin
Nishad S25-Sep-07 1:30
Nishad S25-Sep-07 1:30 
QuestionMessages between threads... Pin
eli1502197925-Sep-07 0:00
eli1502197925-Sep-07 0:00 
Hi,

I have an application which writes data(e.g strings) to the events log.
Now,I need to write an application which reads the data from the events log at the same time that
the first application write the data(i.e Logger).
In that application I want to create 2 threads:
The first thread will read the data from the events log,put the data(EVENTLOGRECORD) in a message,
and send it to the other thread.
The second thread will receive the message from the first one,decode it and dispaly the data in a list box.

My questions are:
1. Which is the best (and effective) way to send messages between threads?
2. In the second thread(the one which responsible for the display) - how does the thread receive
those messages?
Do I need to call PeekMessage() and DispatchMessage() in a loop?
I heard about WaitForSingleObject() option,but I didn't understand how to use it...

Can anyone point me to a good tutorial about messages between threads?
I googled a little but could'nt find something usefull...

With best regards,
Eli


AnswerRe: Messages between threads... Pin
DevMentor.org25-Sep-07 0:52
DevMentor.org25-Sep-07 0:52 
AnswerRe: Messages between threads... Pin
nbugalia25-Sep-07 1:16
nbugalia25-Sep-07 1:16 
QuestionINVOKING JAVA METHOD FROM C++ Pin
amitamit19824-Sep-07 23:10
amitamit19824-Sep-07 23:10 
AnswerRe: INVOKING JAVA METHOD FROM C++ Pin
KarstenK25-Sep-07 1:31
mveKarstenK25-Sep-07 1:31 
GeneralJust a tip Pin
Nelek25-Sep-07 2:06
protectorNelek25-Sep-07 2:06 
Questionya machine version is 1.4 Pin
amitamit19825-Sep-07 3:22
amitamit19825-Sep-07 3:22 
QuestionActiveX Control Test Container Pin
p_24-Sep-07 23:10
p_24-Sep-07 23:10 
AnswerRe: ActiveX Control Test Container Pin
nbugalia24-Sep-07 23:30
nbugalia24-Sep-07 23:30 
GeneralRe: ActiveX Control Test Container Pin
p_24-Sep-07 23:40
p_24-Sep-07 23:40 
GeneralRe: ActiveX Control Test Container Pin
nbugalia25-Sep-07 0:19
nbugalia25-Sep-07 0:19 
GeneralRe: ActiveX Control Test Container Pin
p_25-Sep-07 0:23
p_25-Sep-07 0:23 
GeneralRe: ActiveX Control Test Container Pin
nbugalia25-Sep-07 1:06
nbugalia25-Sep-07 1:06 
GeneralRe: ActiveX Control Test Container Pin
p_25-Sep-07 1:19
p_25-Sep-07 1:19 
GeneralRe: ActiveX Control Test Container Pin
nbugalia25-Sep-07 1:52
nbugalia25-Sep-07 1:52 
QuestionOpening a web site from VC++ application Pin
megha_gharote24-Sep-07 22:38
megha_gharote24-Sep-07 22:38 
AnswerRe: Opening a web site from VC++ application Pin
Nishad S24-Sep-07 22:59
Nishad S24-Sep-07 22:59 
GeneralRe: Opening a web site from VC++ application Pin
toxcct24-Sep-07 23:36
toxcct24-Sep-07 23:36 

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.