1

私は今何日もこの問題を抱えています。ラップトップで実行しようとした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

どういう意味ですか?ちなみに、私はラップトップでdelphi2005personalを使用しています。ここにコードを入力してください

4

1 に答える 1

4

TIdPeerThreadIndy 9 以前のクラスです。Indy 10 には存在しません。 に置き換えられましたTIdContextIdHTTPWebBrokerBridge.pasしたがって、ラップトップのバージョンの Indy に対して間違ったバージョンの を使用しています。Indy 10 の最新バージョンは、IdHTTPWebBrokerBridge.pasIndy の SVN サーバーまたは Fulgan ミラーから入手できます。両方へのリンクはIndy の Web サイトにあります。

于 2012-02-21T16:19:13.413 に答える