 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Phil Guest
|
Posted: Thu Dec 18, 2003 3:06 pm Post subject: TLB Extraction / Import Delphi 5, 6, 7 |
|
|
Hi,
I've come across a problem with the Import TLB. I'm trying to convert a
.TLB file to .PAS file using the import and I'm getting 3 totally
different results depending on the version of delphi.
The default settings I'm using is the following for all 3 Delphis:
Environment Setting Type Library
SafeCall : Only Dual Interfaces
Language : IDL
Ignore Special CoFlag (Unchecked)
The TLB I'm importing is from Autocad 2004. (I'm already posted this
message there)
Result:
Delphi 7: Exports almost correct. Only problem is that it seems to add
LOTS of GhostMethod. Causing problems when executing the code.
Delphi 6: Export incorrectly. Seems to make a few mix ups. Assigning
wrong types to the coclass etc.
Delphi 5: Seems to be the only one exporting correctly.
I'd like to know, if anyone has come across this problem? And is there
a fix or a setting?
Thank you. Have a nice day.
|
|
| Back to top |
|
 |
Deborah Pate (TeamB) Guest
|
Posted: Thu Dec 18, 2003 4:42 pm Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 |
|
|
<
Delphi 6: Export incorrectly.
That's a known problem. The patches for D6 helped a little,
IIRC, but did not fix it.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
|
| Back to top |
|
 |
Phil Guest
|
Posted: Thu Dec 18, 2003 4:51 pm Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 |
|
|
Deborah,
Known problem, ok... but how can I import a correct tlb. I didn't find
any solution searching in the newsgroup. (Might be just the wrong keyword)
It seems that Delphi 7 has the "More" correct result ( Properties
read/write etc) but it includes a bunch GhostMethods.
If I remove the ghostmethods from delphi 7, it seems to work. The TLB
that is.
Is there a fix coming? Is removing the GhostMethods enough?
Thank you.
Deborah Pate (TeamB) wrote:
| Quote: | Phil:
Delphi 6: Export incorrectly.
That's a known problem. The patches for D6 helped a little,
IIRC, but did not fix it.
|
|
|
| Back to top |
|
 |
Deborah Pate (TeamB) Guest
|
Posted: Thu Dec 18, 2003 5:16 pm Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 |
|
|
<
Known problem, ok... but how can I import a correct tlb.
D7 overhauled the events of generated components, so I'd
use D7's importer with D7 and D5's with D6. I don't know
what the ghostmethod problem is, sorry.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
|
| Back to top |
|
 |
Tony Tanzillo Guest
|
Posted: Fri Dec 19, 2003 3:48 am Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 |
|
|
For the record, and in the highly unlikely case
that Borland will notice, the GhostMethod problem
manifests when importing the AutoCAD 2004 type
library.
--
Tony Tanzillo,
http://www.caddzone.com
"Deborah Pate (TeamB)" <d.pate (AT) blueyonder (DOT) co.not-this-bit.uk> wrote
| Quote: | Phil:
Known problem, ok... but how can I import a correct tlb.
D7 overhauled the events of generated components, so I'd
use D7's importer with D7 and D5's with D6. I don't know
what the ghostmethod problem is, sorry.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|