开发者

Upgrade Indy9 to Indy10

开发者 https://www.devze.com 2022-12-15 16:32 出处:网络
Iwant to upgrade my application from Indy 9 to 10 with Delphi 2007. There is a lot of issues in this, I have read the in开发者_Go百科dy doc about changes but I still need advise. This won\'t compile a

I want to upgrade my application from Indy 9 to 10 with Delphi 2007. There is a lot of issues in this, I have read the in开发者_Go百科dy doc about changes but I still need advise. This won't compile as ReadString is not found.

vCmdHead := FTCPClient.ReadString(16);

where FTCPClient is of type TIdTCPClient. vCmdHead is a structure that contains a command as a string. What method could I use instead ?


      {$IFDEF INDY10}
      ALine := IdTCPClient.IOHandler.ReadString(16);
      {$ELSE}
      Aline := IdTCPClient.ReadString(16);
      {$ENDIF}

Something like this

0

精彩评论

暂无评论...
验证码 换一张
取 消