loading a COM assembly (.tlb)

I am trying to load one of these, but it says, in the VB module:

 Import failed Could not load file or assembly 'file or one of its dependencies. The module was expected to contain an assembly manifest.

I tried to convert the tlb to a dll with tlbexp but that says:

TlbImp : error TI1029 : Type library was exported from a CLR assembly an
d cannot be re-imported as a CLR assembly.

The tlb can be used in VBA/Excel but I want to access it directly from GH.

Is there a way?

Thanks

  • up

    Raul Matagringo

    Hi,

    as it says. For VBA it is the *.tlb file. For modern applications you need a *.dll file.

    • up

      Steve Baer

      It sounds like you already have a .NET DLL to work with and should not need the type library at all.  You would need to add the .NET DLL reference.

      1