VBScript error with CreateObject
Hi Everyone, I wrote a vbscript that's functions through command line. So i tried transfering it to testcomplete as a script and it keeps failing at "set imap = CreateObject("Chilkat_9_5_0.Imap")" with the following error "ActiveX component can't create object 'Chilkat_9_5_0.Imap'" please see the snippet of code below
Dim fso Set fso = CreateObject("Scripting.FileSystemObject")
set imap = CreateObject("Chilkat_9_5_0.Imap")
success = imap.UnlockComponent("Test")
Any help would be greatly appreciated
Chilkat DLLs have 32-bit and 64-bit versions. Which one do you have installed? TestComplete is a 32-bit app, so it needs the 32-bit version.
I've tried and installed the "Chilkat 32-bit ActiveX MSI Installer" (on Windows 7 64-bit). BothCreateObject("Chilkat_9_5_0.Imap")
and
Sys.OleObject("Chilkat_9_5_0.Imap")
work fine:
So, make sure you have the 32-bit version installed and that it's registered properly (maybe rerun the registration as admin).