Forum Discussion

WestManBruce's avatar
WestManBruce
New Contributor
8 years ago
Solved

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")" wi...
  • HKosova's avatar
    HKosova
    8 years ago

    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). Both

    CreateObject("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).