求助~~关于TIdTCPClient接受TIdTCPServer数据的问题
初学c++builder,用的是2010版
想写一段简单的两台电脑联通,可互发信息的小程序
想要使TIdTCPClient接受TIdTCPServer发送的数据
viod_fastcall Tform1::TIdTCPClient1Connected(TObject *Sender)
{
if(TIdTCPClient1->Execute Action()==true)
{
String str;
str=IdTCPClient1->IOHandler->ReadLn();
}
}
这样写行吗?还有就是Execute Action()的括号中应该怎么写呢?