Innovate the future

Find the passion of life...
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 当用DotNET编写COM组件在服务器端扩展Server时,需要遵循的规则有

1)         利用Server Context创建对象(Objects)的时候,需要显式的创建COM实现的一个接口

2)         Your COM class should be marshaled using the Automation marshaller. You specify this by adding the AutomationProxyAttribute attribute to your class with a value of true.

3)         Your COM class should generate a dual class interface. You specify this by adding the ClassInterfaceAttribute attribute to your class with a value of ClassInterfaceType.AutoDual.

4)         为了COM在服务器很好的运行,必须继承ServicedComponent,它在System.EnterpriseServices集合中