skamradt
skamradt

Reputation: 15548

How to consume and re-expose a Win32 type library using Delphi Prism

I currently have a Win32 type library created in Delphi which I need to consume, implement and re-expose via .NET. What are the steps necessary to bring the TLB into Prism so the interface can be implemented?

Upvotes: 0

Views: 365

Answers (1)

Carlo Kok
Carlo Kok

Reputation: 1188

the .NET 2.0 sdk tool TLBIMP can create an assembly from a TLB file. Something like:

tlbimp.exe mytlb.tlb /out:MyTLB.Import.dll /namespace:MyTLBImport

Make sure you use /publickey /keyfile or /keycontainer if you want to sign it later on.

After the import, just reference the dll and use it as a regular library.

Upvotes: 4

Related Questions