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.
1 comment:
Same thing wirth .rc files
Jens Borrisholt
Post a Comment