Solved

Thread Message Queue implementation in Windows?

Posted on 2011-03-07
4
818 Views
Last Modified: 2012-05-11
Experts,

I have requirement like, i need to collect the data in one thread and pass on the data to another thread.

I am planning to use messaque queues supported  my windows.
Can i get info on how to use messagequeues for the above requirement?

I found below links for sending /receiving thru messagequeues:
http://msdn.microsoft.com/en-us/library/ms644946(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms644936(v=VS.85).aspx

Iam i referring the right APIs? Here i am not posting to windows(NO MFC, its thread to thread message queue what i need)
0
Comment
Question by:srimallikarthik
4 Comments
 
LVL 13

Accepted Solution

by:
agarwalrahul earned 500 total points
ID: 35073806
Windows doesn't create message queues by default for all the threads. It creates them for only those threads, which require them.
you need to create message loops to effcetively transfer messages between processes.

This should give you a fair idea of using mesasge queues:
http://msdn.microsoft.com/en-us/library/ms644928(v=vs.85).aspx
0
 

Author Comment

by:srimallikarthik
ID: 35292904
Hi,

Sorry for the delayed comments,

agarwalrahul's comment was useful, we can close this quetions



0
 
LVL 53

Expert Comment

by:Dhaest
ID: 35321697
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Message not shown 5 82
Application Crash 2 34
What program can open a .sig file image? 6 71
what is the best Integrated development environment 2 35
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
A list of useful business intelligence software.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question