我是.Net开发人员.OPC的新手.当我尝试一些OPC客户端样本时,所有这些样本都会出现此错误.似乎DLL似乎没有注册.但我不知道如何以及在何处注册.
error: retrieving the COM class factory for component with CLSID failed due to the following error: 80040154
Run Code Online (Sandbox Code Playgroud)
即使我试过这个
regsvr32 Interop.OPCAutomation.dll",
Run Code Online (Sandbox Code Playgroud)
但它也会抛出错误
The module "Interop.OPCAutomation.dll" was loaded but the entry-point DllRegisterServeer was not found.
Make sure that "Interop.OPCAutomation.dll" is a valid DLL or OCX file and then try again.
Run Code Online (Sandbox Code Playgroud)
我经历了这么多现有的论坛.他们中的很多人都表示将平台目标更改为x86,但我仍然遇到同样的问题.仅供参考,我只能在"项目属性"的"构建"选项卡顶部的"平台"选项中看到"活动(任何CPU)".
这是我的环境细节:
.Net 2005
OPCAutomation Weapper
Windows 7 64-bit OS
Dell Inspiron 1525 (I hope this is not a 64bit machine, but my engineer installed 64bit OS somehow).
Run Code Online (Sandbox Code Playgroud)
请帮我.
提前致谢!
当用户单击具有特定CLASS的元素时,我需要使用经典的Java Script函数来执行方法.
我知道如何使用jQuery做到这一点.我没有选择在当前场景中使用jQuery,我依赖于JS.此外,我需要从触发此功能的对象获取.
jQuery(".caller-icon").click(function(){
var obj = $this;
// do what I want using obj
});
Run Code Online (Sandbox Code Playgroud)