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