Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jun : Bug in IdUDPServer1??

www.cryer.info
Managed Newsgroup Archive

Bug in IdUDPServer1??

Subject:Bug in IdUDPServer1??
Posted by:"GannTrader" (a@a.com)
Date:Wed, 1 Jun 2005 23:12:48

Hi

I have placed a IdUDPServer on a form.
Then i create a OnUDPRead event.
When compiling i get an error telling me that "Undeclared identifier
'TBytes' "
If i read the helpfile it says it should be TIdBytes instead but changing
doesnt help.
Whats wrong???

/Gann

Im using Indy 10 and Delphi 7

Heres the code:

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, IdBaseComponent, IdComponent, IdUDPBase, IdUDPServer;

type
  TForm1 = class(TForm)
    IdUDPServer1: TIdUDPServer;
    procedure IdUDPServer1UDPRead(Sender: TObject; AData: TBytes;
      ABinding: TIdSocketHandle);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.IdUDPServer1UDPRead(Sender: TObject; AData: TBytes;
  ABinding: TIdSocketHandle);
begin
//
end;

end.

Replies:

www.cryer.info
Managed Newsgroup Archive