ActiveX组件不能创建对象

时间:2022-02-25 01:58:31

We changed the function name “aaa” into bbb in vbexample.dll, and registered into VB application. After registering it is getting executed in my local PC. After that when I generated a build of that VB application and tested it in another PC, it is not working. The Message I get is: "ActiveX component can not create object".

我们在vbexample.dll中将函数名“aaa”更改为bbb,并注册到VB应用程序中。注册后,它将在我的本地PC上执行。之后,当我生成该VB应用程序的构建并在另一台PC上进行测试时,它无法正常工作。我得到的消息是:“ActiveX组件无法创建对象”。

1 个解决方案

#1


How is the COM object being instantiated on the other PC? If you rebuild the app on one PC and then move it to another PC afterward, it's likely that VB has built it with another IID, and the other computer doesn't recognize it.

如何在另一台PC上实例化COM对象?如果您在一台PC上重建应用程序,然后将其移动到另一台PC,则可能是VB已使用另一台IID构建它,而另一台计算机无法识别它。

#1


How is the COM object being instantiated on the other PC? If you rebuild the app on one PC and then move it to another PC afterward, it's likely that VB has built it with another IID, and the other computer doesn't recognize it.

如何在另一台PC上实例化COM对象?如果您在一台PC上重建应用程序,然后将其移动到另一台PC,则可能是VB已使用另一台IID构建它,而另一台计算机无法识别它。