I am using named pipes to transfer text between vc++ and delphi.
The delphi code is shown below:
procedure TForm1.OnServerPipeMessage(Sender: TObject; Pipe: Cardinal; Stream: TStream); var S : String; begin SetLength(S, Stream.Size); Stream.Read(S, Length(S)); Memo1.Lines.Add(S); end;
The problem i face is that I am able to receive only one character at delphi end. For example if i send "abcdefg" from vc++ then I receive the starting character i.e 'a' at Delphi end. I am using 'rllibby' pipes.pas unit.
It would be great, if anyone could help me with the code.