Solved

Thread Message Queue implementation in Windows?

Posted on 2011-03-07
4
790 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now