BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TLB Extraction / Import Delphi 5, 6, 7

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Phil
Guest





PostPosted: Thu Dec 18, 2003 3:06 pm    Post subject: TLB Extraction / Import Delphi 5, 6, 7 Reply with quote



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





PostPosted: Thu Dec 18, 2003 4:42 pm    Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 Reply with quote



< Delphi 6: Export incorrectly.
Quote:


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





PostPosted: Thu Dec 18, 2003 4:51 pm    Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 Reply with quote



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





PostPosted: Thu Dec 18, 2003 5:16 pm    Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 Reply with quote

< Known problem, ok... but how can I import a correct tlb.
Quote:


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





PostPosted: Fri Dec 19, 2003 3:48 am    Post subject: Re: TLB Extraction / Import Delphi 5, 6, 7 Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.