高手进来啊... 帮忙看看那里错了.在线等待.. ( 积分: 50 )

  • 主题发起人 主题发起人 866521
  • 开始时间 开始时间
8

866521

Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, D7ScktComp, StdCtrls, ComCtrls;
type
connip = record
ssocket:TCustomWinSocket;
size1 : integer;
end;
ipconnlist = ^connip;

type
TForm1 = class(TForm)
ServerSocket1: TServerSocket;
Timer1: TTimer;
Memo1: TMemo;
procedure FormCreate(Sender: TObject);
procedure ServerSocket1ClientConnect(Sender: TObject;
Socket: TCustomWinSocket);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
iplist :tlist;
implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
iplist:=Tlist.Create;
end;

procedure TForm1.ServerSocket1ClientConnect(Sender: TObject;
Socket: TCustomWinSocket);
var
ipconn:ipconnlist;
begin

New(ipconn);
ipconn.ssocket:=Socket;
ipconn.size1:=0;
iplist.Add(ipconn);
ipconn:=iplist.Items[1];
end;

end.
 
是不是这里?
ipconn:=iplist.Items[0];
 
接受答案了.
 

Similar threads

S
回复
0
查看
750
SUNSTONE的Delphi笔记
S
I
回复
0
查看
627
import
I
I
回复
0
查看
685
import
I
后退
顶部