To add a type library to a project add a .ridl file (it should just be a blank file, or can prepopulat it with IDL) with the same filename as the project (Example: Project1.dpr or Project1.cpp then Project1.ridl). Then for Delphi add:
{$R *.TLB}
to the .dpr file or for C++ add a:
#pragma resource "*.tlb"
to the Project1.cpp file.
If you don't want to link the .tlb file into the project simply do remove the $R or the #pragma.
Wednesday, September 24, 2008
Delphi 2009 - Add a type library to a project
Posted by Chris Bensen at 8:30 AM
Labels: C++Builder, CodeGear, Delphi
1 comment:
Same thing wirth .rc files
Jens Borrisholt
Post a Comment