我在 Delphi 2009 的 TFields 实现中发现了一个错误,并编写了一个快速补丁。我将 DB.pas 复制到我的项目文件夹并将其添加到项目的文件列表中,但现在我无法编译它。当我转到代码中指定的位置时,前两个错误消息甚至没有任何意义。
当然,如果可以指望任何东西都能正确编译,那就是 CodeGear 的代码。他们已经设法编译它,生成 VCL 组件。那么我错过了什么?这是编译器的输出:
[DCC Error] DB.pas(2536): E2134 Type 'Pointer' has no type info
[DCC Error] DB.pas(10799): E2066 Missing operator or semicolon
[DCC Error] DB.pas(12933): E2217 Published field 'FCursor' not a class or interface type
[DCC Error] DB.pas(12934): E2217 Published field 'FTitle' not a class or interface type
[DCC Fatal Error] testing.dpr(23): F2063 Could not compile used unit '..\..\..\vclpatch\DB.pas'