对我来说,这个COM库是用哪种语言编写的并不重要,那么为什么会有影响呢?
供参考,这是当您在.NET库上生成.tlb文件时使用tlbimp时会发生的情况:
C:\dev>tlbimp test.tlb
Microsoft (R) .NET Framework Type Library to Assembly Converter 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.
TlbImp : error TI1029 : Type library 'test' was exported from
a CLR assembly and cannot be re-imported as a CLR assembly.
此外,我的测试COM库使用IUnknown,仅支持早期绑定的COM互操作。