How to auto-generate * _TLB.pas in Delphi XE?

We upgraded our project to Delphi XE. There .ridl files instead of .tlb. But what about * _TLB.pas files? How to transfer changes to .ridl file to * _TLB.pas file?

Delphi XE does not modify this file at all.

+6
source share
1 answer

Open the type library editor and click the update implementation button.

See more details.

Update :

Make sure the .ridl file is in the project manager.

From the IDE library: View | Type should now be enabled.

Open the type library editor here.

The _tlb.pas file must not be open in any editor window.

Clicking on the update implementation should update the _tlb.pas file.

(Sometimes you first need to save the .ridl button)

In cases, I have to save the project, close and restart the IDE before the correct information appears.

Sometimes you need to unregister a library before doing all this.

+12
source

Source: https://habr.com/ru/post/896716/


All Articles