<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Il 01/04/2023 14:50, Jean SUZINEAU via lazarus ha scritto:<br>
</p>
<blockquote type="cite"
cite="mid:72fe3cf8-1336-04c9-6add-a057c4d1972c@wanadoo.fr">You can
uses pipes too, basically just two files no need of networking,
one for reading (delphi to freepascal), one for writing(freepascal
to delphi).
<br>
<br>
I made last year a small app to communicate with Audacity
(<a class="moz-txt-link-freetext" href="https://www.audacityteam.org/">https://www.audacityteam.org/</a>) using a specific plugin
(<a class="moz-txt-link-freetext" href="https://manual.audacityteam.org/man/scripting.html">https://manual.audacityteam.org/man/scripting.html</a>).
<br>
<br>
You can find there the unit/class which manages the communication:
<br>
<a class="moz-txt-link-freetext" href="https://github.com/jsuzineau/pascal_o_r_mapping/blob/TjsDataContexte/tools/jsAudacity/uAudacity.pas">https://github.com/jsuzineau/pascal_o_r_mapping/blob/TjsDataContexte/tools/jsAudacity/uAudacity.pas</a>
<br>
<br>
In my case I used pipes already created by Audacity.
<br>
For your problem I think it would be more appropriate to use
FpPipe (although I personnaly never used it):
<br>
<br>
<a class="moz-txt-link-freetext" href="https://www.freepascal.org/docs-html/rtl/baseunix/fppipe.html">https://www.freepascal.org/docs-html/rtl/baseunix/fppipe.html</a>
<br>
<br>
I think you will find something similar on Delphi 7 side.
<br>
<br>
<br>
</blockquote>
<br>
I'm afraid that Jean Suzineau is right, except for the reference to
FpPipe which is Unix specific. <br>
<br>
Named pipes (or FIFO's) may be the simplest solution, in place of a
bloated Indi10, useful if you need something quite complex, such as
a securized web server , or of the tcp/ip sockets of NetChat.<br>
Just a file you write on one side and read the on the other side.
Two named pipes for bidirectional communication, if necessary. <br>
<br>
You'll find a lot of examples just looking for Delphi pipes or
Delphi named pipes on the web. <br>
<a moz-do-not-send="true"
href="https://github.com/Poznamenany/Named_Pipes_in_Delphi">https://github.com/Poznamenany/Named_Pipes_in_Delphi
</a><br>
is just one for Delphi side (but it's ok also for Lazarus).<br>
<br>
You may find useful the discussion here, to avoid common pitfalls:<br>
<a moz-do-not-send="true"
href="https://forum.lazarus.freepascal.org/index.php?topic=44251.0">https://forum.lazarus.freepascal.org/index.php?topic=44251.0</a><br>
<br>
Giuliano<br>
<pre class="moz-signature" cols="72">--
Do not do to others as you would have them do to you.They might have different tastes.</pre>
</body>
</html>