老外编程时遇到和我一样的COM异常:0x80010105
来源:互联网 发布:js 小数乘以整数 编辑:程序博客网 时间:2024/04/30 19:15
Cyril
Posted: Thu Oct 11, 2007 8:34 am Post subject: Why can't RSLinx OPC Server browse Items?
--------------------------------------------------------------------------------
I use the OPC Clent to connect RSLinx OPC Server. There are two topics - "PLCA" and "PLCB" in server, and each topic has some items.The connect status is OK.But it can't get item names using BrowseOPCItemIDs.
case 1
Code:
iOpcNamespace->ChangeBrowsePosition(OPC_BROWSE_TO,L"");
result = iOpcNamespace->BrowseOPCItemIDs(OPC_FLAT,L"",VT_EMPTY,0,(&iEnum));
The result is 0x80010105 that mean the server threw an exception.
case 2
Code:
iOpcNamespace->ChangeBrowsePosition(OPC_BROWSE_TO,L"");
result = iOpcNamespace->BrowseOPCItemIDs(OPC_BRANCH,L"",VT_EMPTY,0,(&iEnum));
The result is OK.iEnum is consist of "PLCA" and "PLCB".
case 3
Code:
iOpcNamespace->ChangeBrowsePosition(OPC_BROWSE_DOWN,L"PLCA");
result = iOpcNamespace->BrowseOPCItemIDs(OPC_BRANCH,L"",VT_EMPTY,0,(&iEnum));
The result is OK.iEnum is consist of "[PLCA]Offline" and "[PLCA]Online".
case 4
Code:
iOpcNamespace->ChangeBrowsePosition(OPC_BROWSE_DOWN,L"PLCA");
result = iOpcNamespace->BrowseOPCItemIDs(OPC_FLAT,L"",VT_EMPTY,0,(&iEnum));
The result is OK.iEnum has nothing.
What should I do to get all topic and items?
- 老外编程时遇到和我一样的COM异常:0x80010105
- System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E
- 我遇到的JAVA异常和解决方法
- 创建Shp报错 (异常来自 HRESULT:0x80010105 (RPC_E_SERVERFAULT))
- 我和你一样,一样的坚强
- 我遇到的concurrentmodificationexception异常
- TabLayout我遇到的一些问题和异常
- 编程珠玑的一道令我surprise的题目,竟然和Google的笔试题一样。
- CheckedTextView的使用、学android疯狂讲义第二版遇到的问题希望能帮到和我一样的初学者、新手
- 英语和老外说的一样溜:好口语三关键
- 和我一样大的总裁
- 献给和我一样的单身程序员
- 我遇到过的异常 in JavaWeb
- 我遇到的异常及解决办法汇总
- 我遇到过的错误,异常
- 安装SQL server 2005 我遇到的com+ 和数据计数器问题解决
- 写给我&和我一样学外包的兄弟
- 我看到妈妈的眼睛也和我一样
- 【转】 SELECT INTO command not allowed within multi-statement transaction
- TestReport目录
- asp.net中的Register指令
- 屏幕坐标与客户端坐标的转换
- hardware 中的几个地址问题
- 老外编程时遇到和我一样的COM异常:0x80010105
- 安装PowerDesigner12后,导致word鼠标不能的最简单实用的办法
- android make 语法
- TestLog目录
- 朋友相会
- Java图片处理方法大全
- 奥巴马在美国版的开学第一课上的演讲
- 索爱X10 常见问题汇总
- 多表查询分页存储过程,解决了第二页不显示的问题