IPC using C#.NET Windows application

  • Thread starter Thread starter GVN
  • Start date Start date
Hello GVN,

IPC == Interprocess Communication?

If so, then depending on what you want to communicate you can use kernel
objects (like in pre-.NET) or look at the IPC channel with remoting in .NET
2.0.

Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
http://adoguy.com
 
By IPC I mean Inter Process Communication. My requirement is as
follows:

I have 4 projects in my solution explorer (say Project A, B, C, D).
Project D has a modeless dialog. This modeless dialog can be raised by
either from Project A or B or C. When raised by any one or all of the
above said projects, the modeless dialog in turn should be able to
respond to the project that last raised it (That is, the modeless
dialog should be able to send some data to the project that raised it).
I hope this can be achieved by using IPC.

Thanks,
GVN.
 
Hello GVN,

As Shawn told, what to use is up to you.
I'd add Pipes (preferable), and Remoting (let's put away such thing as sockets,
WS, ES)

BTW, see this tool http://www.mini-tools.com/components/comm/index.htm


G> By IPC I mean Inter Process Communication. My requirement is as
G> follows:
G>
G> I have 4 projects in my solution explorer (say Project A, B, C, D).
G> Project D has a modeless dialog. This modeless dialog can be raised
G> by either from Project A or B or C. When raised by any one or all of
G> the above said projects, the modeless dialog in turn should be able
G> to respond to the project that last raised it (That is, the modeless
G> dialog should be able to send some data to the project that raised
G> it). I hope this can be achieved by using IPC.
G>
G> Thanks,
G> GVN.
G> Shawn Wildermuth (C# MVP) wrote:
G>---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Hi GVN,
If you read some threads before yours, you'll see the "Bi-Directional
Remoting with Unmanaged app" thread in which I mentioned that I've
used IPC together with C#.NET in order to communicate with a MFC
soution. That is, I managed to communicate in one direction: from
C#.NET to MFC, by using Delegates + DllImports, importing the WIN32
PostMessage into the C#.NET app.
Unfortunately I haven't found the path back, from MFC to C#.NET, which
is actually what you also need in your situation (because IPC is only
available in Framework version 2.0).
Maybe we can join forces and unravel this problem.

Greetz, Victor.

=============================================
 
Back
Top