开发者

Can't call 32bit dll under 64bit windows

I try to create a COM object from my JS script like this:

function main() 
{
var MyApplication = new ActiveXObject("Base.Application");
}

main();

I am getting error: "Automation server can't create object". This error occurs on Windows 2003 64 bit. The dll is 32 bit and it works fine on 32 bit systems.

I've tried both versions of Regsvr32.exe on the 64 bit system and both versions told me that dll registered succesfully.

Unfortunatelly the error message does not tell me why it can not create object. The reason is unknown, it might be that it can't create object because it is still not registered or it might be something totally different...

I've also add full permisions to this dll.

I don't know what el开发者_运维百科se I can do, do you have any ideas?

After edit

Ok, I know that this DLL is registered under system (found it at the registry), so why I can't call any COB objects from it?


Maybe because your process is 64 bits and you try to call in a 32 bit dll? (There are some tricks though, in this case like the one described here).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜