开发者

.Net to COM Interop Tester

开发者 https://www.devze.com 2023-01-02 00:53 出处:网络
I made a class in C# that I am exposing to COM. I can register it just fine using RegAsm.exe. I would like to test it before I send it off, but using TlbImp.exe gives me an error of \"Type libaray wa

I made a class in C# that I am exposing to COM. I can register it just fine using RegAsm.exe.

I would like to test it before I send it off, but using TlbImp.exe gives me an error of "Type libaray was exported from a CLR assembly and cannot be re-imported as a CLR assemply."

What is a good wa开发者_高级运维y to test this?


You can create a VB macros in word\excel\etc:

Dim obj As Object
Set obj = CreateObject("progid here")
Call obj.SomeMethodForTest()


Use PowerShell:

$myObj = new-object -comObject ProgId
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号