By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,851 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,851 IT Pros & Developers. It's quick & easy.

Polling Message Queues

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.