So at work we have a huge amount of legacy components, COM objects written in 32-bit VB6 and called through VBScript, and I've been assigned the wonderful job of maintaining and updating them. I've never worked in-depth with COM before but regardless I get set up, and try to run a script. I get the following error:
"Microsoft VBScript runtime error: ActiveX component can't create object: 'OurDLL.clsMyObj'"
The error appears on the line:
Set myObj = CreateObject("OurDLL.clsMyObj")
The script works fine in 32-bit CMD, but not in 64-bit CMD, so I have reason to believe it's an architecture issue. I like to use Cygwin for editing and testing; I'm fine with using two different versions, but I'd like to avoid the hassle of keeping both configured if I can.
So, the question is:
- Is there a way I can make those 32-bit COM objects visible to my 64-bit Cygwin?
- If not, is there a way to I can use 64-bit stuff with 32-bit Cygwin?