Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net Visual Studio 2010在生成时生成“错误”_Vb.net_Visual Studio 2010_Ocx - Fatal编程技术网

Vb.net Visual Studio 2010在生成时生成“错误”

Vb.net Visual Studio 2010在生成时生成“错误”,vb.net,visual-studio-2010,ocx,Vb.net,Visual Studio 2010,Ocx,我有一个使用第三方OCX的项目。OCX最近更新了一种新方法。我正在尝试插入使用该新方法的代码: EPS.Refresh_IO_Link(ControllerRow("ControllerPort"), ControllerRow("ControllerSettings")) 它可以很好地编译,但当我尝试在VS2010中运行它时,它会生成以下错误: 'Refresh_IO_Link' is not a member of 'AxEPSIO.AxctlEPSIO'. 事实并非如此。它显示在Int

我有一个使用第三方OCX的项目。OCX最近更新了一种新方法。我正在尝试插入使用该新方法的代码:

EPS.Refresh_IO_Link(ControllerRow("ControllerPort"), ControllerRow("ControllerSettings"))
它可以很好地编译,但当我尝试在VS2010中运行它时,它会生成以下错误:

'Refresh_IO_Link' is not a member of 'AxEPSIO.AxctlEPSIO'.
事实并非如此。它显示在Intellisense中,如果我进行重建,错误就会消失。但是,在调试模式下运行它总是会产生错误


我尝试过清理和重建解决方案,但每次都有相同的错误。

DLL地狱。删除项目中对.ocx的引用,然后重新添加它。如果.ocx不是以二进制兼容方式编译的,那么您可能仍然在引用.ocx的旧版本。另外,请确保新的.ocx已在您的电脑regsrv32.exe上注册。

第三方组件是什么?你试过咨询供应商吗?嘿,我不知道为什么我说第三方。。。它是在VB6中内部开发的。OCX在另一个项目中工作,而不是这个项目。另一个项目也有同样的问题,但清理/重建修复了它。老实说,我不认为这是该组件的故障,而是VS2k10在用新的OCX替换旧版本后感到困惑。