delphi 7的solidworks的二次开发,求问!!!!!!

bq6836 2016-04-05 04:10:50
毕设题目是用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版本问题还是什么?
...全文
2523 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_41643732 2018-01-24
  • 打赏
  • 举报
回复
有哪位大神知道这个具体怎么解决么?我去除声明的时候注释了好多行,感觉我的操作不对
zhujinqiang 2017-05-12
  • 打赏
  • 举报
回复
[Error] SldWorks_TLB.pas(43854): Identifier redeclared: 'CoEdge' ---报错有重复声明的错 CoEdge这个重复声明了
qq_32292657 2017-05-11
  • 打赏
  • 举报
回复
你出现的那个错误,是很奇怪的事情,因这个sldwork_tlb.pas是类型库自动生成的,我这里也是这样,我很不明白为什么delphi的这个工具会翻译错误。为此,我这样解决:打开它,找到coEdge的定义,注释掉该行。目前为此,还没有问题~~~
看那山瞧那水 2016-04-05
  • 打赏
  • 举报
回复
[Error] SldWorks_TLB.pas(43854): Identifier redeclared: 'CoEdge' CoEdge重复声明了 打开导入的SldWorks_TLB.pas文件,去了重复声明, 在某些情况下,导入其它系统的DLL文件,自动生成的TLB文件,会有重复声明的错误 然后重新编译,直到通过,保存TLB文件。

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧