Re: Signaling for a running application
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Mon, 14 Apr 2008 00:09:23 -0700
On Sun, 13 Apr 2008 23:04:01 -0700, Peter Baranyi <PeterBaranyi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
:) Yeah, you completly missing the point. The point is that I have two
applications. One written in Deplhi, the other in c#. If I click on a menu in
the Deplhi application, I want to do something in the c# applicaiton. And I
have no idea how to do this kind of "link" between the two.
For what it's worth, in your original post, among other things the apparent use of Delphi jargon was a definite impediment to understanding what it is exactly you're trying to do. If you only want people versed in Delphi to answer your question, I guess that's fine. But Peter R.'s lack of comprehension was understandable. For a broader audience, you might try to use more general-purpose terminology, using jargon only where necessary and even then only jargon that's defined for the context in which you're conversing (e.g. in a .NET newsgroup, use only jargon from the .NET world).
Anyway, that's a long way of saying, yeah...you probably could've asked the original question better.
Now, that said...what you're asking about is "inter-process communications", or IPC. Within .NET itself, there are a number of pre-defined technologies. However, I don't know if any of them are supportable via Delphi. .NET Remoting and WCF are probably the two most commonly mentioned higher-level mechanisms.
A common technique for connecting two disparate applications would be simply to use regular network i/o. Set up a TCP connection between the two, define some simple protocol for sending messages back and forth, and use that.
Another IPC technique that's often used is memory-mapped files. You can create a named memory-mapped file that is backed only by the virtual memory manager rather than an actual file. It's essentially a shared-memory mechanism, and it has the potential to be more efficient than network i/o. However, it's more complicated and AFAIK there's no built-in support in .NET for it (and there may not be in Delphi either, for all I know).
If someone else has some specific ideas as to how you might get WCF working from a Delphi application, I think that'd probably be a good way to go. Otherwise, plain network i/o is actually not bad, and is very general-purpose (so can easily be extended to practically any language/framework you might wind up using in the future).
Pete
.
- References:
- Signaling for a running application
- From: Peter Baranyi
- RE: Signaling for a running application
- From: Peter Ritchie [C# MVP]
- RE: Signaling for a running application
- From: Peter Baranyi
- Signaling for a running application
- Prev by Date: RE: Signaling for a running application
- Next by Date: RE: MSBuildBinPath for 3.5
- Previous by thread: RE: Signaling for a running application
- Next by thread: Re: Generics question
- Index(es):
Relevant Pages
|