Indy 9 to Indy10 - errors

Giganews Newsgroups
Subject: Indy 9 to Indy10 - errors
Posted by:  Mark Moss (markmo…@adelphia.net)
Date: Tue, 25 Nov 2008

Help

        I just tried to compile a program( TCPIP_Server.exe ) that has run
for about 6 months and I am getting errors.

        It worked fine under version9 of Indy but we just upgraded to
version 10.

        This is the Code for the TCPIP_Server

        uses
  SysUtils, Classes, graphics, controls, forms, dialogs, IdBaseComponent,
  IdComponent, IdTCPServer, StdCtrls, ScktComp, DB, ADODB, SR4UProc, StStrL,
  Variants, ActiveX, ComObj, AdDate, DateUtils, Math, Htmlview, Types,
  ExtCtrls, jpeg, IdCustomTCPServer;

type

{==============================================================================}

  TMyPeerThread = class(TIdPeerThread)  --- Should this be changed to
TIdThread ????
    protected

        procedure BeforeExecute; OverRide;
        procedure AfterExecute;  OverRide;

        procedure UpdateScreenInfo;

    public

        And the Error are

[Error] TCPIP_Server.pas(25): Undeclared identifier: 'TIdPeerThread'
[Error] TCPIP_Server.pas(25): Class type required

        This is the Code for the TCPIP_Client

var
  Form2                                          : TForm2;
  Hold_InputString                              : String;
  I                                              : Integer;

implementation

{==============================================================================}
procedure TForm2.btnCommandLineClick(Sender: TObject);
begin

    with TCPClient do
        begin

              Connect;

              WriteLn( edtCommandLine.Text );

              try
                Hold_InputString := ReadLn('</SR4U>');
                            Memo1.Lines.Add(Hold_InputString);

              finally
                    Disconnect;
              end;

        end;

end;

        And the Error are

[Error] ClientMain.pas(83): Left side cannot be assigned to

        Thanks for any help that you can give me

Mark Moss

Replies