有一个以前版本的delphi项目里面用到的ehlib版本比较低也使用过ehlib5.0最近重新修改这个项目的时候发现无法编译了。
下面是delphi编译的时候报的错。
[dcc32 Error] DBSumLst.pas(439): E2010 Incompatible types: 'string' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(511): E2003 Undeclared identifier: 'Null'
[dcc32 Error] DBSumLst.pas(523): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(566): E2003 Undeclared identifier: 'Null'
[dcc32 Error] DBSumLst.pas(586): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(594): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(601): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(603): E2010 Incompatible types: 'string' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(662): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(796): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(805): E2010 Incompatible types: 'System.TArray<System.Byte>' and 'string'
[dcc32 Fatal Error] DBGridEh.pas(95): F2063 Could not compile used unit 'DBSumLst.pas'
delphiehlib5.6
下面是delphi编译的时候报的错。
[dcc32 Error] DBSumLst.pas(439): E2010 Incompatible types: 'string' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(511): E2003 Undeclared identifier: 'Null'
[dcc32 Error] DBSumLst.pas(523): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(566): E2003 Undeclared identifier: 'Null'
[dcc32 Error] DBSumLst.pas(586): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(594): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(601): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(603): E2010 Incompatible types: 'string' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(662): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(796): E2010 Incompatible types: 'AnsiString' and 'System.TArray<System.Byte>'
[dcc32 Error] DBSumLst.pas(805): E2010 Incompatible types: 'System.TArray<System.Byte>' and 'string'
[dcc32 Fatal Error] DBGridEh.pas(95): F2063 Could not compile used unit 'DBSumLst.pas'
delphiehlib5.6
这些提示是TArray<Byte>泛型集合不能add anstring类型对象。