Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help Pin
0x3c05-Jan-10 5:58
0x3c05-Jan-10 5:58 
AnswerRe: Help Pin
Game-point4-Jan-10 21:58
Game-point4-Jan-10 21:58 
QuestionA network-related or instance-specific error occurred while establishing a connection to SQL Server Pin
Tridip Bhattacharjee4-Jan-10 20:34
professionalTridip Bhattacharjee4-Jan-10 20:34 
AnswerRe: A network-related or instance-specific error occurred while establishing a connection to SQL Server Pin
Jimmanuel5-Jan-10 8:32
Jimmanuel5-Jan-10 8:32 
QuestionMSMQ Receiving messages Help!!! Pin
faheemnadeem4-Jan-10 19:32
faheemnadeem4-Jan-10 19:32 
AnswerRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel5-Jan-10 8:52
Jimmanuel5-Jan-10 8:52 
GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem5-Jan-10 17:57
faheemnadeem5-Jan-10 17:57 
AnswerRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 1:09
Jimmanuel6-Jan-10 1:09 
Each program needs its own instance of the receiver class and their own MSMQ for receiving messages. When you initialize the receiver you tell it what should Q to listen to and when you initialize the sender you tell it what Q the data processor is listening to. In the processor you'll need one listener and multiple senders, one for each client. That's how you get two way comms between components.

faheemnadeem wrote:
i need a design pattern for receiver class

It's not all that complicated. You just listen for messages in the queue and raise an event when it receives one. If you want a fancy name for it try message endpoint[^].

Badger | [badger,badger,badger,badger...]

GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem6-Jan-10 4:05
faheemnadeem6-Jan-10 4:05 
GeneralRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 4:52
Jimmanuel6-Jan-10 4:52 
GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem6-Jan-10 5:58
faheemnadeem6-Jan-10 5:58 
GeneralRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 6:57
Jimmanuel6-Jan-10 6:57 
QuestionRead data from a SerialPort: cross-thread not true Pin
AlexB474-Jan-10 18:29
AlexB474-Jan-10 18:29 
AnswerMessage Closed Pin
4-Jan-10 21:50
stancrm4-Jan-10 21:50 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
AlexB475-Jan-10 1:46
AlexB475-Jan-10 1:46 
AnswerRe: Read data from a SerialPort: cross-thread not true Pin
Luc Pattyn5-Jan-10 2:36
sitebuilderLuc Pattyn5-Jan-10 2:36 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
AlexB475-Jan-10 3:44
AlexB475-Jan-10 3:44 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
Luc Pattyn5-Jan-10 3:52
sitebuilderLuc Pattyn5-Jan-10 3:52 
Questionminimizing and maximizing Pin
ummu 24-Jan-10 18:13
ummu 24-Jan-10 18:13 
AnswerMessage Closed Pin
4-Jan-10 21:48
stancrm4-Jan-10 21:48 
GeneralRe: minimizing and maximizing Pin
ummu 24-Jan-10 22:21
ummu 24-Jan-10 22:21 
QuestionHow to bookmark in ritchtextbox Pin
SuhebAhamd4-Jan-10 18:12
SuhebAhamd4-Jan-10 18:12 
AnswerRe: How to bookmark in ritchtextbox Pin
Pawel Gielmuda5-Jan-10 0:16
Pawel Gielmuda5-Jan-10 0:16 
AnswerRe: How to bookmark in ritchtextbox Pin
Eddy Vluggen5-Jan-10 10:29
professionalEddy Vluggen5-Jan-10 10:29 
QuestionWhat is the difference between Activator.CreateInstance and new operator ? Pin
md_azy4-Jan-10 17:45
md_azy4-Jan-10 17:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.