Thursday, August 23, 2007

Problems Compiling Old COM Projects with C++Builder 2007

There have been some reports of problems when opening old COM projects with C++Builder 2007. The error comes from the linker that the .tlb can't be found. A simple work around, and one that we should have used all along, is to add the line anywhere in your project:

#pragma resource "*.tlb"

I hope this work around helps anyone having the problem.


Ralph Gielkens said...

Hello Chris,

We have the same problem with Delphi BDS2006.

BDS2006 requires to change the unit name of my old project. Created in Delphi 7(the unit name is different from the filename). When BDS2006 renames the old project to the same unit name. BDS2006 doesn't know it anymore. When we save it and try to add a new procedure to the _TLB unit, BDS2006 adds it in the interface but not in the _TLB unit.

I think he can't find the _TLB file.

Can you help me with this?


Ralph Gielkens

Chris Bensen said...

Hi Ralph,

Send me an email by clicking on the "Contact Me" link on the right side of this blog.

Post a Comment