gpt4 book ai didi

delphi - 无法编译使用的单元 "IdHTTPWebBrokerBridge",delphi 2005

转载 作者:行者123 更新时间:2023-12-02 06:55:04 26 4
gpt4 key购买 nike

这个问题我已经困扰好几天了。我有一个delphi应用程序,我试图在我的笔记本电脑上运行。这个程序在其他计算机上运行得很好,但是当我尝试在我的笔记本电脑中复制该程序时,它显示很多错误:

[Error] IdHTTPWebBrokerBridge.pas(46): E2003 Undeclared identifier: 'TIdPeerThread'
[Error] IdHTTPWebBrokerBridge.pas(104): E2170 Cannot override a non-virtual method
[Error] IdHTTPWebBrokerBridge.pas(238): E2029 ')' expected but identifier 'Connection' found
[Error] IdHTTPWebBrokerBridge.pas(238): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(242): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(242): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(242): E2014 Statement expected, but expression of type 'string' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(244): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(244): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(245): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(245): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(246): E2153 ';' not allowed before 'ELSE'
[Error] IdHTTPWebBrokerBridge.pas(249): E2029 '.' expected but ';' found
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(499): E2037 Declaration of 'Create' differs from previous declaration
[Error] IdHTTPWebBrokerBridge.pas(501): E2075 This form of method call only allowed in methods of derived types
[Error] IdHTTPWebBrokerBridge.pas(502): E2003 Undeclared identifier: 'FOkToProcessCommand'
[Fatal Error] Primews.dpr(145): F2063 Could not compile used unit 'SourceServerBase\IdHTTPWebBrokerBridge.pas'

我不知道如何自己解决这个问题,因为这是我第一次遇到这个问题。我应该做什么有什么建议吗?谢谢大家。

遇到新问题我发布这个问题后没有做任何更改。现在,它显示新的错误消息:

[Fatal Error] Primews.dpr(67): F2051 Unit DBClient was compiled with a different version of DSIntf.szFIELDNAME

这是什么意思?顺便说一句,我在我的笔记本电脑上使用delphi 2005 individual。 在此输入代码

最佳答案

TIdPeerThread 是 Indy 9 及更早版本中的一个类。它在 Indy 10 中不存在。它被替换为 TIdContext。因此,您使用的 IdHTTPWebBrokerBridge.pas 版本与笔记本电脑的 Indy 版本不符。您可以从 Indy 的 SVN 服务器或 Fulgan 镜像获取最新版本的 Indy 10 和 IdHTTPWebBrokerBridge.pas。两者的链接均位于 Indy's website .

关于delphi - 无法编译使用的单元 "IdHTTPWebBrokerBridge",delphi 2005,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9379087/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com