C
chengjie
Unregistered / Unconfirmed
GUEST, unregistred user!
我在clientsocket读取收到的消息,却显示是空白找了好久也没发现问题在那儿?和位高手帮我瞧瞧!
procedure TForm1.ClientSocket1Read(Sender: TObject;
Socket: TCustomWinSocket);
var
PRecv:TCTPP_Recv;
CmdID:Integer;
msglh:TCTPP_Login_Resp;
Len:Integer;
temp:string;
begin
FillChar(PRecv,Sizeof(TCTPP_Recv),0);
Len:=Socket.ReceiveLength;
Socket.ReceiveBuf(PRecv,Len);
CmdID:=ntohl(PRecv.CommandID);
temp:=precv.dat;
sendmsgfm.Memo1.Lines.Add(temp);
procedure TForm1.ClientSocket1Read(Sender: TObject;
Socket: TCustomWinSocket);
var
PRecv:TCTPP_Recv;
CmdID:Integer;
msglh:TCTPP_Login_Resp;
Len:Integer;
temp:string;
begin
FillChar(PRecv,Sizeof(TCTPP_Recv),0);
Len:=Socket.ReceiveLength;
Socket.ReceiveBuf(PRecv,Len);
CmdID:=ntohl(PRecv.CommandID);
temp:=precv.dat;
sendmsgfm.Memo1.Lines.Add(temp);