W
wynney
Unregistered / Unconfirmed
GUEST, unregistred user!
Const
Buf:array[0..90] of byte =
($76, $76, $64, $75, $7A, $76, $66, $75, $76, $76,
$49, $55, $72, $59, $77, $5B, $3C, $4E, $52, $61,
$44, $5D, $66, $77, $76, $76, $71, $75, $76, $76,
$66, $75, $55, $79, $4C, $5E, $6F, $3F, $49, $44,
$50, $4F, $3F, $77, $3F, $55, $59, $70, $6A, $4F,
$67, $79, $48, $60, $64, $67, $69, $74, $4E, $6A,
$73, $61, $67, $6F, $6B, $67, $63, $49, $44, $3D,
$66, $3E, $4B, $50, $49, $3B, $71, $76, $66, $75,
$46, $3B, $74, $76, $76, $74, $66, $75, $76, $76,
$45);
implementation
{$R *.dfm}
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
var
i:Integer;
begin
Memo1.Lines.Add(ServerSocket1.Socket.ReceiveText);
if ServerSocket1.Socket.ReceiveLength = 91 then
begin
ServerSocket1.Socket.Connections[0].SendBuf(Buf,sizeof(Buf));
end;
end;
ServerSocket1.Socket.Connections[0].SendBuf(Buf,sizeof(Buf));
为什么这一行调试不通过啊
Buf:array[0..90] of byte =
($76, $76, $64, $75, $7A, $76, $66, $75, $76, $76,
$49, $55, $72, $59, $77, $5B, $3C, $4E, $52, $61,
$44, $5D, $66, $77, $76, $76, $71, $75, $76, $76,
$66, $75, $55, $79, $4C, $5E, $6F, $3F, $49, $44,
$50, $4F, $3F, $77, $3F, $55, $59, $70, $6A, $4F,
$67, $79, $48, $60, $64, $67, $69, $74, $4E, $6A,
$73, $61, $67, $6F, $6B, $67, $63, $49, $44, $3D,
$66, $3E, $4B, $50, $49, $3B, $71, $76, $66, $75,
$46, $3B, $74, $76, $76, $74, $66, $75, $76, $76,
$45);
implementation
{$R *.dfm}
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
var
i:Integer;
begin
Memo1.Lines.Add(ServerSocket1.Socket.ReceiveText);
if ServerSocket1.Socket.ReceiveLength = 91 then
begin
ServerSocket1.Socket.Connections[0].SendBuf(Buf,sizeof(Buf));
end;
end;
ServerSocket1.Socket.Connections[0].SendBuf(Buf,sizeof(Buf));
为什么这一行调试不通过啊