1 {-----------------------------------------------------------------------------
2 Unit Name: kol_namedpipeclient
3 Author: Thaddy de Koning
4 Purpose: Demo Named pipe stream
6 -----------------------------------------------------------------------------}
9 unit kol_namedpipeclient
;
10 //********************************************************************
11 // Created by KOL project Expert Version 2.00 on:17-2-2003 17:12:31
12 //********************************************************************
17 Windows
, Messages
, Kol
, kolipcstreams
;
28 procedure BtnClick(sender
:pObj
);
32 procedure NewForm1( var Result
: PForm1
; AParent
: PControl
);
39 procedure NewForm1( var Result
: PForm1
; AParent
: PControl
);
44 Form
:= NewForm(AParent
,'KOL Named pipe Client').SetSize(600,400).centeronparent
.Tabulate
;
46 Form
.Add2AutoFree(Result
);
47 Memo
:=NewEditBox(Form
,[]);
49 Button
:=NewButton(Form
,'Write').PlaceRight
.Resizeparent
;
50 Button
.Onclick
:=BtnClick
;
51 NPS
:=NewNamedPipeWriteStream
;//Use default name
56 procedure Tform1
.BtnClick(sender
:pObj
);
58 NPS
.WriteStr(Memo
.Text);