Undeclared identifier: 'TBytes'

delphi7 编译时,出现这个问题:Undeclared identifier: 'TBytes',该如何解决?

原因:

Delphi2007及以上版本在SysUtils单元定义了TBytes
type
  TBytes = array of Byte;

DELPHI7却没有定义。

解决办法:

 type
  {$if CompilerVersion < 18} //before delphi 2007
    TBytes = array of Byte;
  {$ifend}

  

 

相关文章:

  • 2021-12-16
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案