简体   繁体   中英

ActiveX component can't create object

Using Windows 7 64-bit. I'm getting error "ActiveX component can't create object". All worked well under WinXp. I am logged on as an Administrator. The ActiveX is a 32-bit component.

I can access the ActiveX component (with CreateObject), without errror, from a vb program.

But when I load my asp page using IE8, the vb script portion errors when trying to execute a CreateObject statement.

At first I thought the user needed elevated privileges but now it seems like vbs does not have the privileges to access the ActiveX component. I have also read that the 64-bit vbs interpreter can not execute a 32-bit activex component.

ActiveX component is a DLL. 64-bit host process can't load 32-bit DLL and vice versa. So first of all you need to target this issue, then approach security issues (if you keep having them).

There's a way to load the 32-bit ActiveX from 64-bit process by creating an outproc server, but I don't know details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM