I'm trying to follow the example here:
but right at the outset I'm falling over with the onexecute procedure.
Firstly, if I double click the event to create the procedure, as I normally do I get this:
instead of as the example says:
both of which (I if manually create the second) are showing an undeclared identifier on both TIdContext and TIdPeerThread.
I note the date on the demo is fairly old, have the Indy components changed, or is there a problem with my install, missing components?
If the tutorial is outdated for my Delphi 2007 Indy palette, does anyone know some recent ones?
Here is my entire code:
Steve (Delphi 2007 & XP)
but right at the outset I'm falling over with the onexecute procedure.
Firstly, if I double click the event to create the procedure, as I normally do I get this:
Code:
procedure TSDIAppForm.IdTCPServer1Execute(AContext: TIdContext);
instead of as the example says:
Code:
procedure TSDIAppForm.IdTCPServer1Execute(AThread: TIdPeerThread);
both of which (I if manually create the second) are showing an undeclared identifier on both TIdContext and TIdPeerThread.
I note the date on the demo is fairly old, have the Indy components changed, or is there a problem with my install, missing components?
If the tutorial is outdated for my Delphi 2007 Indy palette, does anyone know some recent ones?
Here is my entire code:
Code:
unit SDIMAIN;
interface
uses Windows, Classes, Graphics, Forms, Controls,
StdCtrls, Buttons, ExtCtrls, ComCtrls, StdActns,
ActnList, ToolWin, IdBaseComponent, IdComponent, IdCustomTCPServer,
IdTCPServer;
type
TSDIAppForm = class(TForm)
StatusBar: TStatusBar;
IdTCPServer1: TIdTCPServer;
procedure IdTCPServer1Execute(AContext: TIdContext);
private
{ Private declarations }
public
{ Public declarations }
end;
var
SDIAppForm: TSDIAppForm;
implementation
uses about;
{$R *.dfm}
procedure TSDIAppForm.IdTCPServer1Execute(AContext: TIdContext);
begin
// TidContext is 'undeclared identifier' ?
end;
end.
Steve (Delphi 2007 & XP)