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.
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.
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…
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…
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.