468,251 Members | 1,391 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,251 developers. It's quick & easy.

Polling Message Queues

I've had to separate my application into 2 apps. I need to second app to poll
the message queue for certain messages from the main app. Does someone have
some code on how to do this? I have the first app sending the messages, but
only have the second app able to respond once. The second app is started from
the first app as an independent process.

Thanks,
Susan
Nov 16 '05 #1
1 2569
Susan,

What kind of messages are you talking about? Do you mean windows
messages? If so, then you can just override the WndProc method on your form
and you will be able to process those messages (assuming that the messages
are sent to that window).

If you mean MSMQ messages, then take a look at the System.Messaging
namespace, as you can use that to read and write to message queues.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Susan" <Su***@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
I've had to separate my application into 2 apps. I need to second app to
poll
the message queue for certain messages from the main app. Does someone
have
some code on how to do this? I have the first app sending the messages,
but
only have the second app able to respond once. The second app is started
from
the first app as an independent process.

Thanks,
Susan

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Aki Niimura | last post: by
4 posts views Thread by Tingo | last post: by
1 post views Thread by Daniel Bass | last post: by
3 posts views Thread by Brian Keating | last post: by
1 post views Thread by Vai2000 | last post: by
1 post views Thread by engwar | last post: by
5 posts views Thread by Mike | last post: by
13 posts views Thread by LordHog | last post: by
3 posts views Thread by Chris Mullins [MVP - C#] | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.