Hi guys.

I have a problem that I think is related to Win32::OLE and Perl versioning. I am migrating an app from one server to another one and the darn thing just isn't cooperating. The app is called Numara Footprints and runs on Perl, which is distributed with the app itself; hence, changing the version of Perl is probably not a viable option since it will void our support contract with Numara.

  • The old system runs Activestate Perl v5.8.8 built for MSWin32-x86-multi-thread
  • The new system runs Activestate Perl v5.10.0 built for MSWin32-x64-multi-thread
  • Both servers are the same OS, Windows Server 2008, 64 bit standard.

    I execute the following lines to invoke a dll and output an error if one exists:

    $tdc = Win32::OLE->new('TDapiole80.TDconnection'); print Win32::OLE->LastError();

    Invoking the object/method on the old system outputs no errors. But on the new system, I get the following:

    Win32::OLE(0.1709) error 0x80040154: "Class not registered"

    Now, I have seen some discussions about the class not registered issue being related to not loading a dll properly into the system's registry. But I have done this due diligence and assure you the dll is registered. This is why I believe the issue is related to the perl versions and their respective behaviors through the Win32::OLE module.

    Please help, Oh Great Perl Monks!

    Thanks in advance for your help.

    - bb


    In reply to Perl Version and Win32::OLE by bbrownlee

    Title:
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.