日期:2014-05-20  浏览次数:20791 次

请问.net程序怎么使用com的接口继承关系?
请问.net程序怎么使用com的接口继承关系?

比如Com类 "ComClass "是继承Com接口 "ComInterface "的,但是.net引用它们后ComClass和ComInterface就没有关系了,如果写  
ComInterface   obj   =   new   ComClass();  
就报无法转换。请问让ComClass转为ComInterface?

------解决方案--------------------
UP
------解决方案--------------------
可以传Type.Missing
------解决方案--------------------
还望前学习中
------解决方案--------------------
ms-help://MS.MSDNQTR.2003FEB.2052/cpguide/html/cpconexposingcomcomponentstonetframework.htm