Gabor DEAK JAHN djg at tramontana.co.hu
Sat Sep 22 16:30:32 CEST 2001

At 9/22/01 08:14 AM, you wrote:


 > That's exactly what I was looking for... but for Windows.

If it's you who is writing both programs, it would be much easier to use
some standard means of interprocess communication, named pipes for instance.
Your external program calls CreateNamedPipe, the main program calls
CallNamedPipe, both specifying the same pipe name (it is in the format
"\\.\pipe\anynameyoulike". Both receive a handle that they can use for
writing and reading, respectively. The usual way to write to or read from
handles is WriteFile and ReadFile but you can use SetStdHandle to reassign
your standard input and output to the pipe handles and use simple 'read' and
'write' instructions instead.


   Gabor DEAK JAHN

Gabor DEAK JAHN -- Budapest, Hungary.
WWW: www.tramontana.co.hu
E-mail: djg at tramontana.co.hu

More information about the fpc-pascal mailing list