房
房客
Unregistered / Unconfirmed
GUEST, unregistred user!
我无奈:关于流控制出错
一个未知数组要传给对方(NMUDP)
写入流出错(未知错误)
var data: Pointer;size:integer;
passdatachar;
mystream:TmemoryStream;
passdata:=pchar(data);
MyStream := TMemoryStream.Create;
MyStream.write(passdata, size);//出错了,size是data的size
//MyStream.write(data, size);//出错了,size是data的size
请指点
一个未知数组要传给对方(NMUDP)
写入流出错(未知错误)
var data: Pointer;size:integer;
passdatachar;
mystream:TmemoryStream;
passdata:=pchar(data);
MyStream := TMemoryStream.Create;
MyStream.write(passdata, size);//出错了,size是data的size
//MyStream.write(data, size);//出错了,size是data的size
请指点