使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


How do I Connect to OPC Client with the Widest DCOM?


Last Update: 2018/11/7

To connect to the OPC client under the widest possible set of DCOM configurations, the program should call the following function as soon as it starts up and before it opens any DCOM connections. The syntax provided is for C++/C#, and must be modified accordingly for different languages.

// Immediately after calling CoInitializeEx ()

// Allow anyone to be able to call back into us!

CoInitializeSecurity (NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL);

Note: This function is recommended if the program contains an ActiveX OPC client control.

Tags
DCOM