Question:
How do I run VBScript in 32-bit mode to create a 32-bit ActiveX on 64-bit Windows?
Create two files: A runMyVbs.bat and a myVbs.vbs. The .bat script runs the .vbs using the 32-bit cscript.
The contents of the runMyVbs.bat would look like this:
REM This is the 32-bit cscript. C:\windows\sysWOW64\cscript myVbs.vbs pause
The contents of the myVbs.vbs would look like this:
set xml = CreateObject("Chilkat_9_5_0.Xml") MsgBox xml.Version
This is assuming the Chilkat 32-bit ActiveX DLL has been registered on the 64-bit Windows system.