• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

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
0
Martinhy
Asked:
Martinhy
  • 2
1 Solution
 
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
 
Infinity08Commented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now