Creating IDTCPServer Runtime

Giganews Newsgroups
Subject: Creating IDTCPServer Runtime
Posted by:  FeliXus (bilcan [at] gmail.com)
Date: Fri, 1 Dec 2006

Hi I am creating TIDTCPServer on runtime, but I can't referancing another
procedure to ONEXECUTE event. I receive this error "Incompatible types :
method pointer and regular procedure"

procedure SSExecute(AContext: TIdContext);
Begin
End;

Procedure SSOpen;
Begin
  SS := TIdTCPServer.Create(nil);
  With SS do
  Begin
  DefaultPort := 10100;
  OnExecute  := SSExecute; // Errror line
  Active := True;
  End;
End;

Replies