Basic Message Queue example for Visual Studio 2005

Posted on 2006-05-08
Last Modified: 2010-04-15

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.

Question by:Martinhy
    LVL 53

    Expert Comment


    Author Comment

    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.

    LVL 53

    Accepted Solution

    Well, this one is a lot more informative and extensive example of what you want to do (if I'm not mistaken) :

    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 :

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
    Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
    The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

    779 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