净到COM互操作测试仪 [英] .Net to COM Interop Tester

查看:140
本文介绍了净到COM互操作测试仪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一类在C#中,我暴露在COM。我可以把它就好使用RegAsm.exe注册。

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

我想测试之前,我把它关闭,但使用TLBIMP.EXE给我的错误类型libaray是从CLR程序集导出的,不能再导入为CLR assemply。

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 way to test this?

推荐答案

您可以在Word中创建一个VB宏\ EXCEL \ etc目录中:

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

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

这篇关于净到COM互操作测试仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆