获取IConnectionPointContainer出错 点击:594 | 回复:3



slizi

    
  • 精华:0帖
  • 求助:0帖
  • 帖子:2帖 | 1回
  • 年度积分:0
  • 历史总积分:7
  • 注册:2003年8月01日
发表于:2003-08-28 14:17:00
楼主
各位,我初学用VC写OPC CLIENT,在获得IOPCItemMgt的IConnectionPointContainer接口时出错,不知是何原因,请帮我分析一下,谢谢! xiaolis@sohu.com



rookie

  • 精华:0帖
  • 求助:0帖
  • 帖子:0帖 | 7回
  • 年度积分:0
  • 历史总积分:61
  • 注册:2003年2月11日
发表于:2003-08-19 14:14:00
1楼
你的代码是怎么写的阿?

slizi

  • 精华:0帖
  • 求助:0帖
  • 帖子:2帖 | 1回
  • 年度积分:0
  • 历史总积分:7
  • 注册:2003年8月01日
发表于:2003-08-27 10:41:00
2楼
获取IConnectionPointContainer时的代码如下: IConnectionPointContainer *pCPC=NULL; HRESULT r1 = pIopcItemMgt->QueryInterface(IID_IConnectionPointContainer, (void**)&pCPC); 结果出错,请帮忙分析一下。

rookie

  • 精华:0帖
  • 求助:0帖
  • 帖子:0帖 | 7回
  • 年度积分:0
  • 历史总积分:61
  • 注册:2003年2月11日
发表于:2003-08-28 14:17:00
3楼
OPCServer 没有实现这个接口

热门招聘
相关主题

官方公众号

智造工程师