Undeclared identifier: 'TBytes'


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}

  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM