I am trying to create a Tclientsocket at runtime but I can't assign the events.
I use
var
cs:TCLIENTSOCKET;
procedure OnReadx;
begin
end;
procedure intsok;
begin
cs:=Tclientsocket.create(nil);
cs.OnRead:=OnReadx;
end;
It doesn't work. what is the right way to do this?