Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,

I created a simple DLL using ATL Project Wizard with one simple class added (of Simple ATL Object type) under MS Visual Studio 2008 (C++).

The solution was built fine and dll registration went successfully.

However when I tried to create new ActiveXObject() in JavaScript the WSH 5.8 aborts with the following message: "Automation server can't create object". The script is not used in under any browser.

After I tried the same script on other Windows 7 machine with WSH 5.7 (!) script went through successfully.

Can anyone please help me with this issue since my project demand to stick with Windows 7 and WSH 5.8 WSH.

Thank you,
Brad
Posted

1 solution

Problem solved. The issue was about the dll built for x32 platform. Running the script on x64 platform resulted the problem while loading the dll. WSH 5.7 on x64 platform still runs in x32 mode which explains why the script was successfully loading the dll. On the other hand WSH 5.8 runs in x64 mode. Once the dll was rebuilt for x64 the script went through successfully under 5.8 as well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900