Home > Back-end >  Delphi 7 secondary development of solidworks, inquire!!!!!!!!!!!!!!!
Delphi 7 secondary development of solidworks, inquire!!!!!!!!!!!!!!!

Time:09-17

Project topic is standard parts library established by using Delphi 7 secondary development of solidworks, but after the registration SldWorks_TLB, run the file shows error, all in accordance with the design and programming tutorial, is still an error, error is shown in figure
Warning] SldWorks_TLB. Pas (43314) : Method 'GetChildren hides virtual Method of base type' TComponent '
[Error] SldWorks_TLB. Pas (43854) : the Identifier redeclared: 'CoEdge'
[Warning] SldWorks_TLB. Pas (45793) : Method 'elegantly-named SetName hides virtual Method of base type' TComponent '
[Warning] SldWorks_TLB. Pas (47587) : Method 'elegantly-named 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 'elegantly-named SetName hides virtual Method of base type' TComponent '
[Warning] SldWorks_TLB. Pas (53443) : Method 'elegantly-named 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) : the Identifier redeclared: 'CoEdge'
[Error] SldWorks_TLB. Pas (96533) : the Identifier redeclared: 'CoEdge'
[Error] SldWorks_TLB. Pas (96533) : '=' expected but ') found
[Error] SldWorks_TLB. Pas (43855) : Unsatisfied forward or external declaration: '. 71. The Create '
[Error] SldWorks_TLB. Pas (43856) : Unsatisfied forward or external declaration: '. 71. CreateRemote '
[Fatal Error] Unit1. Pas (7) : Could not compile, informs the unit '.. 1 \ \ DELPHI \ Imports \ SldWorks_TLB pas'
The great spirit show just a little, solidworks version problem or what?

CodePudding user response:

[Error] SldWorks_TLB. Pas (43854) : the Identifier redeclared: 'CoEdge'

CoEdge repeat statement

Open the import SldWorks_TLB pas files, went to the repeated statements,
In some cases, the import of other DLL files in the system, automatic generation of TLB file, there will be a repeat statement error

Then recompile until through, save TLB file,

CodePudding user response:


That your mistakes, it is very strange, because this sldwork_tlb. Pas is type library automatically generated, I here also is such, I really don't know why this tool of Delphi translation errors, for this reason, I have this solution: open it, find the definition of coEdge, comment out the bank, so far, still no problem ~ ~ ~

CodePudding user response:

[Error] SldWorks_TLB. Pas (43854) : the Identifier redeclared: 'CoEdge'
- an error has repeatedly promised fault
CoEdge the repeat statement

CodePudding user response:

What a great god know how to solve this specific? When I remove the statement notes a lot, feel like I'm the wrong operation
  • Related