X xiaoyue_a Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-16 #1 以前在d7中用tidtcpclient和tidtcpserver弄了一个传文件的程序,应为想实现使用代理,安装了indy10。原来的TidTcpClient.WriteBuffer()在indy10里面怎么写啊?请大侠们帮帮小弟!!!!
以前在d7中用tidtcpclient和tidtcpserver弄了一个传文件的程序,应为想实现使用代理,安装了indy10。原来的TidTcpClient.WriteBuffer()在indy10里面怎么写啊?请大侠们帮帮小弟!!!!
Z zqw0117 Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-16 #3 uses IdGlobal; var Buf: TMyRecord; begin IdTcpClient1.IOHandler.Write(RawToBytes(Buf, SizeOf(Buf))); end;
uses IdGlobal; var Buf: TMyRecord; begin IdTcpClient1.IOHandler.Write(RawToBytes(Buf, SizeOf(Buf))); end;
X xiaoyue_a Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-16 #4 老兄IdTCPClient.IOHandler.Write(ToBytes(你的Buf变量)); 不行啊 提示:[Error] UnitClient.pas(170): E2003 Undeclared identifier: 'ToBytes'
老兄IdTCPClient.IOHandler.Write(ToBytes(你的Buf变量)); 不行啊 提示:[Error] UnitClient.pas(170): E2003 Undeclared identifier: 'ToBytes'
Z zqw0117 Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-16 #5 uses IdGlobal; var Buf: TMyRecord; begin IdTcpClient1.IOHandler.Write(RawToBytes(Buf, SizeOf(Buf))); end;
uses IdGlobal; var Buf: TMyRecord; begin IdTcpClient1.IOHandler.Write(RawToBytes(Buf, SizeOf(Buf))); end;
Z zqw0117 Unregistered / Unconfirmed GUEST, unregistred user! 2007-04-16 #7 没看到我写的吗? [red]uses IdGlobal;[/red] 你要用RawToBytes需要首先引用IdGlobal单元啊。