Communication between 2 processes by DLL
-
1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.
-
1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.
bonzaiholding wrote:
communication between 2
We use named pipes for our application which has worked out pretty well for us.
bonzaiholding wrote:
Is there a way that 2 processes will be in Contact through DLL
I guess I don't understand what you are asking here. But is sounds like you are asking that the two process have to have a common reference to the same data structures. So yes you would have to have both projects use the same data structures.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns Help humanity, join the CodeProject grid computing team here
-
1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.
what is the best car? do you need signaling? are you looking for something message oriented? or just shared data? do you need locks? etc etc. You need to provide more information as to the kind of data and communication you're intending. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
-
what is the best car? do you need signaling? are you looking for something message oriented? or just shared data? do you need locks? etc etc. You need to provide more information as to the kind of data and communication you're intending. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
I don't need a lock, i need data,structure and most important is signaling.
-
I don't need a lock, i need data,structure and most important is signaling.
that does not tell me anything about the app and the data, so the best I can say is: - sharing data can be done with a memory mapped file, this probably needs P/Invoke and Win32 API; - signaling can be done in many ways, e.g. with Windows messages (override WndProc) alternatives are: - sending messages (data+signal), e.g. with named pipes - RPC - remoting - ... :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
-
1 . What is the best way to set communication between 2 processes on the same computer? (The simplest way because every process will be writen by another company and team). 2. Is there a way that 2 processes will be in Contact through DLL (class with static values, Static function and so on) ? Thanks , Shai.
One way to setup interprocess queue using a reliable queueing mechanism would be to use MSMQ. Here is a good sample - http://articles.techrepublic.com.com/5100-10878_11-6170794.html[^]. I have never used MSMQ for interprocess communication myself, so I cannot help you further with this.
modified on Tuesday, December 8, 2009 12:00 AM
-
bonzaiholding wrote:
communication between 2
We use named pipes for our application which has worked out pretty well for us.
bonzaiholding wrote:
Is there a way that 2 processes will be in Contact through DLL
I guess I don't understand what you are asking here. But is sounds like you are asking that the two process have to have a common reference to the same data structures. So yes you would have to have both projects use the same data structures.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns Help humanity, join the CodeProject grid computing team here
Wes Aday wrote:
named pipes
That sounds right.
Wes Aday wrote:
have both projects use the same data structures.
That's not real easy; each app has its own app domain.