畢設題目是用delphi 7 二次開發solidworks 建立標準件庫,但在注冊SldWorks_TLB后,運行檔案顯示錯誤 ,一切按照教程上設計編程,依然報錯,錯誤如圖
Warning] SldWorks_TLB.pas(43314): Method 'GetChildren' hides virtual method of base type 'TComponent'
[Error] SldWorks_TLB.pas(43854): Identifier redeclared: 'CoEdge'
[Warning] SldWorks_TLB.pas(45793): Method 'SetName' hides virtual method of base type 'TComponent'
[Warning] SldWorks_TLB.pas(47587): Method 'SetName' hides virtual method of base type 'TComponent'
[Warning] SldWorks_TLB.pas(48644): Method 'GetChildren' hides virtual method of base type 'TComponent'
[Warning] SldWorks_TLB.pas(49694): Method 'SetName' hides virtual method of base type 'TComponent'
[Warning] SldWorks_TLB.pas(53443): Method 'SetName' hides virtual method of base type 'TComponent'
[Warning] SldWorks_TLB.pas(58781): Method 'GetChildren' hides virtual method of base type 'TComponent'
[Warning] SldWorks_TLB.pas(69609): Method 'GetChildren' hides virtual method of base type 'TComponent'
[Error] SldWorks_TLB.pas(96528): Identifier redeclared: 'CoEdge'
[Error] SldWorks_TLB.pas(96533): Identifier redeclared: 'CoEdge'
[Error] SldWorks_TLB.pas(96533): '=' expected but ')' found
[Error] SldWorks_TLB.pas(43855): Unsatisfied forward or external declaration: '.71.Create'
[Error] SldWorks_TLB.pas(43856): Unsatisfied forward or external declaration: '.71.CreateRemote'
[Fatal Error] Unit1.pas(7): Could not compile used unit '..\DELPHI\1\Imports\SldWorks_TLB.pas'
求大神指點一二,是solidworks版本問題還是什么?
uj5u.com熱心網友回復:
[Error] SldWorks_TLB.pas(43854): Identifier redeclared: 'CoEdge'CoEdge重復宣告了
打開匯入的SldWorks_TLB.pas檔案,去了重復宣告,
在某些情況下,匯入其它系統的DLL檔案,自動生成的TLB檔案,會有重復宣告的錯誤
然后重新編譯,直到通過,保存TLB檔案。
uj5u.com熱心網友回復:
你出現的那個錯誤,是很奇怪的事情,因這個sldwork_tlb.pas是型別庫自動生成的,我這里也是這樣,我很不明白為什么delphi的這個工具會翻譯錯誤。為此,我這樣解決:打開它,找到coEdge的定義,注釋掉該行。目前為此,還沒有問題~~~
uj5u.com熱心網友回復:
[Error] SldWorks_TLB.pas(43854): Identifier redeclared: 'CoEdge'---報錯有重復宣告的錯
CoEdge這個重復宣告了
uj5u.com熱心網友回復:
有哪位大神知道這個具體怎么解決么?我去除宣告的時候注釋了好多行,感覺我的操作不對
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/46083.html
上一篇:delphi呼叫frFastReport 2.47的報表,如何代碼指定列印機自定義紙張?
下一篇:關于隨機分配資料的問題!!
