我必须从VBScript
的ASP
页面获取命令接口和状态接口,如下所示。 COM将部署在Windows CE设备中从另一个COM对象中获取COM对象
Set polyColdObj=CreateObject("PolyCold.Main")
Set statusObj = polyColdObj.StatusInterface()
Set commandObj = polyColdObj.CommandInterface()
我打算使用Atl开发COM对象。我的疑问是
- ATL COM中`StatusInterface`和`CommandInterface`的签名应该是什么?
- 在将对象返回给自动化客户端(VBScript)之前,我应该在`StatusInterface`和`CommandInterface`上调用AddRef()吗?
- 每次调用StatusInterface或创建'PolyCold.Main'对象时,是否应该创建对象?
- 这是为`StatusInterface`和`CommandInterface`命名的标准方式吗?