minmin has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks, I am working on Windows 7 64 bits and i faced an issue with:

$tdc = Win32::OLE->new('TDapiole80.TDconnection', sub {$_[0]->Quit;}) or die "Failed to load OTAClient DLL.\n";
Perl program can not load OTAClient ddl. It seems an issue with different windows version. How can i fix it using the existing Win32 module or install another module for Windows 64 bits? Many thanks in advance! Kind regards, MinMin

  • Comment on Failed to load OTAClient DDL in Win32::OLE while working on Windows 7 64bit
  • Download Code

Replies are listed 'Best First'.
Re: Failed to load OTAClient DDL in Win32::OLE while working on Windows 7 64bit
by Discipulus (Canon) on Jul 02, 2015 at 08:09 UTC
    is this dll present and registered (if needed)? anyway be aware of a pernicious trap in all ms 64bit editions: File System Redirection (see wikipedia).

    If all your processes (cmd.exe, Perl ..) are 64 bit they see the real System32 path, otherway the resulting process is a 32bit one and see total different paths.

    You can workaround this using the special, fictional, not wellknown, 'sysnative' path.

    HtH
    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.