• C

Basic Message Queue example for Visual Studio 2005

Hi,

I was wondering if anybody could give me a simple Sender and Reciever example for Windows Message Queues. I had been using the Linux Message Queue and need to run the application on Windows. I would be grateful for any advice.

Martin
MartinhyAsked:
Who is Participating?
 
Infinity08Connect With a Mentor Commented:
Well, this one is a lot more informative and extensive example of what you want to do (if I'm not mistaken) :

http://www.codeproject.com/w2k/msmq.asp

and there's a few interesting links at the bottom.


If it's IPC you need (so not restricted to the message queue), then check ou this MSDN page :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/interprocess_communications.asp

especially the part about COM and sockets.


A final comment : I've been told using an invisible window as a message queue is not a bad solution ... but I never tried it.
0
 
Infinity08Commented:
0
 
MartinhyAuthor Commented:
This is an example of a very basic queue but not the kind I am looking for. I am looking for a message queue which operates as a means of Inter Process Communication between applications. I know there is a Message Queue Structure definded in Windows but I am not sure how to use it. Thanks for the example though.

Martin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.