Click here to Skip to main content
16,022,752 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I get the cursor class to work with asynchronous peek of messages. The application puts messages for serveral clients in a queue.
The label tells me which client the message is for. I need to be able to asynchronously peek a message in the queue to determine if it is for me. If not I need to move onto the next message. The MSMQ class used to provide a peeknext to accomplish this.
Posted

1 solution

Look for "Peek at messages without removing them from the queue" on the following link. There's an example using GetAllMessages to do just what you asked.

http://msdn.microsoft.com/en-us/library/ms973860.aspx#interactmessaque_topic2[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900