[DUG] Delphi talking to C#

Jolyon Smith jsmith at deltics.co.nz
Tue Dec 14 08:40:56 NZDT 2010


Simple answer : Yes, lots of different ways.

 

Which is the best/most appropriate will depend on precisely what sort of
information, what frequency, what volume etc...

 

A shared memory mapped file allows two applications to share a piece of
memory, which can provide the basis for very direct IPC (inter-process
communication) but you have to provide synchronisation around the comms (tho
I imagine you could find some libraries that wrap this up for you - I had
one myself at one time - it's not that hard - tho finding one that services
both C# and Delphi could limit the options).

 

You could use TCP/IP between the two processes.

 

Named pipes are another option.

 

Even basic Windows messaging might suffice, depending on your needs.

 

 

I shall stop now and simply point you at:

 

http://www.codeproject.com/KB/threads/Win32IPC.aspx

 

 

Hope that helps.

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Bob Pawley
Sent: Tuesday, 14 December 2010 08:31
To: delphi at delphi.org.nz
Subject: [DUG] Delphi talking to C#

 

Hi

 

I have two applications. 

 

One is written in Delphi.

 

The other in MS C#.

 

I need to communicate between the two.

 

I use text files and filewatcher now, but that seems kind of crude and the
information is visible to the user.

 

I know I can use ShellExecute to open one app from the other app, but that
seems to be its extent.

 

Is there some other way of sending information back and forth??

 

Bob

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20101214/271bca22/attachment.html 


More information about the Delphi mailing list