F
fu_xiang_yu
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
var reqcodechar; reqcodestr:string;
begin
getmem(reqcode,30);
Socket.ReceiveBuf(reqcode^,30);<--为什么这里用serversocket1.socket.....就会出错
reqcodestr:=reqcode;
showmessage(reqcodestr);
freemem(reqcode);
end;