# No control over GenTLB with Delphi 2010

**URL:** https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360
**Category:** Discussion
**Created:** [October 28, 2009, 3:55am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360 "2009-10-28T03:55:52Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![award](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@award](https://www.finalbuilder.com/forums/u/award)
#### Post date: [October 28, 2009, 3:55am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/1 "2009-10-28T03:55:52Z")

</div>

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&nbsp;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.

&nbsp;

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

&nbsp;

Thanks,

Alistair.

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 28, 2009, 6:33am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/2 "2009-10-28T06:33:10Z")

</div>

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](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.

---

<div class="post-metadata">

### Author: ![award](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@award](https://www.finalbuilder.com/forums/u/award)
#### Post date: [October 28, 2009, 7:10am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/3 "2009-10-28T07:10:07Z")

</div>

Thanks for the quick response.   
  
 The new options don’t quite work 🙂   
  
 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\>

---

<div class="post-metadata">

### Author: ![award](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@award](https://www.finalbuilder.com/forums/u/award)
#### Post date: [October 28, 2009, 7:14am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/4 "2009-10-28T07:14:46Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 28, 2009, 7:32am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/5 "2009-10-28T07:32:34Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 28, 2009, 7:54am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/6 "2009-10-28T07:54:29Z")

</div>

Ok, lets try that again

---

<div class="post-metadata">

### Author: ![award](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@award](https://www.finalbuilder.com/forums/u/award)
#### Post date: [October 29, 2009, 3:43am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/7 "2009-10-29T03:43:14Z")

</div>

Thanks again, that’s fixed the problem…   
  
 Cheers,   
 Alistair.

---

<div class="post-metadata">

### Author: ![boulrik](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/boulrik/32/2793_2.png) [@boulrik](https://www.finalbuilder.com/forums/u/boulrik)
#### Post date: [November 26, 2009, 11:14am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/8 "2009-11-26T11:14:27Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 27, 2009, 2:23am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/9 "2009-11-27T02:23:42Z")

</div>

Hi Ulrik   
  
 This build should fix the problem :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/630/FB630\_1825.exe](https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1825.exe)

---

<div class="post-metadata">

### Author: ![boulrik](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/boulrik/32/2793_2.png) [@boulrik](https://www.finalbuilder.com/forums/u/boulrik)
#### Post date: [December 15, 2009, 2:15am UTC](https://www.finalbuilder.com/forums/t/no-control-over-gentlb-with-delphi-2010/1360/10 "2009-12-15T02:15:35Z")

</div>

Works OK now.

Thanks and Merry Christmas,  
Ulrik
