Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: XE8 problems with type library editor


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Oct 28, 2015 9:08 AM Last Post By: Markus Humm
Markus Humm

Posts: 5,113
Registered: 11/9/03
XE8 problems with type library editor  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 28, 2015 8:10 AM
Hello,

I have a COM-automation server project converted from D2007 to XE8. It compiles fine.
Now I need to extend the COM-Interface.

The View/Typelibrary menu item is always grayed out. I figured out now, that one can
open the .tlb file via File/Open, but only in read only mode. I figured out as well that
since D2009 a text .ridl file is being generated on compilation. I can open that via
File/Open and get the type library editor I know.

Now I add a new record with a few fields, all of the int datatype.
I can click on the refresh button, but that doesn't update the <unitname>_TLB.pas
and my other unit thus doesn't know the new record.

When I try to save this changed definition I can save it as .TLB file, but trying to
overwrite the existing one just results in a error window:

Title: bds
Error message: Unknown

Which seems to come from MadExcept.

Compiling doesn't seem to change anything either.

Any hints? I'm really stuck this way!

Greetings

Markus
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: XE8 problems with type library editor  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 28, 2015 8:45 AM   in response to: Markus Humm in response to: Markus Humm
Markus Humm wrote:
Hello,

I have a COM-automation server project converted from D2007 to XE8. It compiles fine.
Now I need to extend the COM-Interface.

The View/Typelibrary menu item is always grayed out. I figured out now, that one can
open the .tlb file via File/Open, but only in read only mode. I figured out as well that
since D2009 a text .ridl file is being generated on compilation. I can open that via
File/Open and get the type library editor I know.

Now I add a new record with a few fields, all of the int datatype.
I can click on the refresh button, but that doesn't update the <unitname>_TLB.pas
and my other unit thus doesn't know the new record.

When I try to save this changed definition I can save it as .TLB file, but trying to
overwrite the existing one just results in a error window:

Title: bds
Error message: Unknown

Which seems to come from MadExcept.

Compiling doesn't seem to change anything either.

Any hints? I'm really stuck this way!

Greetings

Markus

After closing all Delphi instances and opening one again I can save the ridl as tlb into the old tlb file ok now. That one no
longer crashes. But the unit Delphi uses and which got updated on changes in prior versions is never updated so my unit
I'm working on doesn't know anything about those new declarations and the main interface has no declarations for the new
methods either.

What am I missing?

Greetings

Markus
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: XE8 problems with type library editor  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 28, 2015 9:08 AM   in response to: Markus Humm in response to: Markus Humm
Hello,

I somehow got it working, but in between it had ruined the complete ridl and the pas file generated.
I had to go back in history.

Greetings

Markus
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02