Use MSMQ to communicate between COM and NET
There are times when two processes will need to talk to each other. Besides the simplest ShellExec way, there are many other Process Synchronization and Synchronization methods provided by the specific language. But to make two or more loosely coupled processes written in different languages to communicate, MSMQ (Microsoft Message Queue) is one of the best methods: you create a queue and others join the queue. You put whatever messages into the queue, and others consume the elements in the queue. It provides both Process Communication and Process Synchronization between EXE/DLL written in, say, VB, and EXE/DLL written in, say, C#. Below is an example from MSDN:
http://msdn.microsoft.com/msdnmag/issues/03/12/MSMQandNET/

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home