01-08-2009, 11:58 AM
o15s19 كتب :لا يوجد خلل لأنو تم استبدال ال Athread في ال Indy 10 بال AContext
و التعليمة تصبح
AContext.Binding.PeerIP
شكرا لك اخي على التوضيح,,
لكن يبدوا هناك خلل عندي ؟؟ عذرا على الخروج من الموضوع نسبياًَ,,,
لاحظ ال اليونيت,.,
PHP كود :
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, IdBaseComponent, IdComponent, IdCustomTCPServer, IdTCPServer;
type
TForm1 = class(TForm)
IdTCPServer1: TIdTCPServer;
procedure IdTCPServer1Connect(AContext: TIdContext);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.IdTCPServer1Connect(AContext: TIdContext);
begin
self.Caption:= 'Connect';
end;
end.
و الخلل كما في الدلفي هو
إقتباس :[DCC Error] Unit1.pas(12): E2003 Undeclared identifier: 'TIdContext'
[DCC Error] Unit1.pas(26): E2005 'TIdContext' is not a type identifier
[DCC Fatal Error] Project1.dpr(5): F2063 Could not compile used unit 'Unit1.pas'
بارك الله لكم
فرّج همّ المهمومين يا الله
اللهم فك قيد اسرانا و اسرى المسلمين
اللهم فك قيد اسرانا و اسرى المسلمين

