Using a COM dll from C# without a type library

前端 未结 7 2141
梦谈多话
梦谈多话 2020-12-14 12:23

I need to use a COM component (a dll) developed in Delphi ages ago. The problem is: the dll does not contain a type library... and every interop feature (eg. TlbImp) in .NET

相关标签:
7条回答
  • 2020-12-14 13:08

    Write a wrapper in VB.Net. VB.Net supports true late binding (no messy reflection). All you need is the progId. You should also implement IDisposable to explicitely manage the component lifecycle.

    0 讨论(0)
提交回复
热议问题