简体   繁体   中英

Upgrade Indy9 to Indy10

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 indy 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM