![](/img/trans.png)
[英]Windows 7 64 bit dll registering vs Windows 8.1 64 bit dll registering
[英]Registering COM Objects in Windows 7 (64 bit)
当我在创建COM对象时运行VBScript时,我似乎遇到了问题,但仅在Windows 7上运行。
当您运行VBA脚本时,您将获得:
Script: C:\Program Files\...
Line: 2
Char: 1
Error: ActiveX Component can't create object: 'my object'
Code: 800A01AD
Source: Microsoft VBScript runtime error
我已经使用命令提示符(Admin)向regsvr32注册了dll,但是当它运行时我得到另一个错误:
The module "my dll" was loaded but the entry-point DLLRegisterServer was not found.
Make sure that "my dll" is a valid DLL or OCX file and then try again
我目前正在运行Windows 7 64位。 该脚本在Windows XP计算机上运行,但我不了解Windows Vista计算机(没有可测试的)。 我使用OLE-COM对象查看器来查看它是否已注册,但文件未显示。
这是Windows 7或64位计算机的问题,还是两者的组合。
尝试使用%windir%\\ syswow64 \\ regsvr32注册组件并使用%windir%\\ syswow64 \\ cscript.exe运行vbs文件
你的COM组件大概是32位,所以你需要在64位窗口上使用32位工具才能使它工作。
谢谢,马克
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.