1.制作程序集

2.签名

签名是为了regasm时用到 /codebase 开关

image

3.regasm

regasm dotnetcomponent****.dll  /codebase /tlb

4,连接点,事件

在引发事件的对象加入  [ComSourceInterfaces(typeof(I事件接口))],ccw会自动生成连接点容器和连接点

posted on 2014-06-25 17:30  子清  阅读(162)  评论(0编辑  收藏  举报