ActiveX组件无法创建对象 [英] ActiveX component can't create object

查看:457
本文介绍了ActiveX组件无法创建对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的Windows Server 2008服务器
上安装了第三方应用程序,并且获得了


ActiveX组件可以当我尝试使用 CreateObject 进行访问时,不要创建对象


VBScript。



它已被安装并存在于程序和功能下。有没有人可以检查一些事情,以确定发生了什么?



我现在试图使用 regsvr32注册该DLL .exe / i bob.dll 建议,但是我收到这个错误:


模块Bob.dll 被加载,但入口点DllRegisterServer是
未找到。



确保Bob.dll是有效的DLL或OCX文件,然后重试


我应该注意,这是64位机器上的32位应用程序,
这一点。它在Windows XP 32位的机器上也可以正常工作。

解决方案

事实证明,这个应用程序在VBScript下工作,我不得不做两件事。


  1. 运行RegAsm.exe注册DLL。

  2. 运行C:\Windows\SysWOW64\cscript.exe运行我的VBScript。

感谢您的帮助。 / p>

还有如果这些不起作用,请查看其他答案此处关于启用32位应用程序。


I have just installed a third party app on my Windows Server 2008 server and I get the

ActiveX Component can't create object

message when I try to access using a CreateObject in VBScript.

It is definitely installed and exists under "Programs and Features". Does anyone have a list of things that I can check to figure out what is going on?

I have now tried to register the DLL using regsvr32.exe /i bob.dll as suggested but I get this error:

The Module "Bob.dll" was loaded but the entry-point DllRegisterServer was not found.

Make sure that "Bob.dll" is valid DLL or OCX file and then try again.

I should note that this is a 32-bit application on a 64-bit machine at this point. It also works fine on my machine which is Windows XP 32-bit.

解决方案

It turns out to get this application working under VBScript, I had to do two things.

  1. Run RegAsm.exe to register the DLLs.
  2. Run the C:\Windows\SysWOW64\cscript.exe to run my VBScript.

Thanks for all your help.

ALSO if these don't work, check out the other answer here about enabling 32-bit applications.

这篇关于ActiveX组件无法创建对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆