No control over GenTLB with Delphi 2010

We are in the process of upgrading from Delphi 2009 to Delphi 2010.

I have updated FinalBuilder to 6.3.0.1712 to ensure we ahve the latest support for D2010.

When we build our application using the Delphi action within FB, it is always (even when *not* using the Build All option) running GenTLB to update the typelibrary before compiling.

How can we either turn this off, or pass command-line parameters to GenTLB, as the default values are not correct for our app.

 

We need to use the -Pt+ option of GenTLB to generate safecall functions for all v-table interfaces.

 

Thanks,

Alistair.

 

 

Hi Alistair

I have added a property to the Delphi action called GenTLBOptions, which is available from the Action Inspector :

https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1785.exe

By default we pass -P -T to gentlb, however if you put anything in the GenTLBOptions property then that will be used instead. I will look at the build/make logic for the ridl/tlb file when time permits.


Thanks for the quick response.

The new options don’t quite work :slight_smile:

If I put “-P -Pt+” in the GenTLBOptions, I get an error from gentlb as it open the .tlb file as input, not the .ridl file

If I put “-P -Pt+ -T” in the GenTLBOptions, I get an error that -T is an invalid option.

I suspect you are replacing the “-P -T<name.tlb>” (default) with " <name.tlb>". Note the space is critical and causes an error…

I think you need to either always put in the “-T<name.tlb>”, and just replace the “-P” with the GenTLBOptions; or not automatically generate the “<name.tlb>” at all, and leave it to be explicitly added to the GenTLBOptions by me…

Thanks,
Alistair.
</name.tlb></name.tlb></name.tlb></name.tlb>

Let me try again (HTML getting in the way…)

I suspect you are replacing the “-P -T{name.tlb}” (default) with “{my options} {name.tlb}”. Note the space is critical and causes an error…

I think you need to either always put in the “-T{name.tlb}”, and just replace the “-P” with the GenTLBOptions; or not automatically generate the “{name.tlb}” at all, and leave it to be explicitly added to the GenTLBOptions by me…

Ahh… too much of a rush… new build is running… I’ll post here when it’s available.

Ok, lets try that again

Thanks again, that’s fixed the problem…

Cheers,
Alistair.

Upgraded to 6.3.0.1816 and the typelib generation stopped working. It names the generated tlb file -T.tlb, i.e. it adds “-T” in front of the name which makes the compilation fail since it looks for .tlb.
Going back to 6.3.0.1712 solves the problem.

Hi Ulrik

This build should fix the problem :

https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1825.exe

Works OK now.

Thanks and Merry Christmas,
Ulrik