Greetings, Recently I was using Win32::OLE module to access a third-party dll. The dll is registered with regsvr32.exe so its definitely in Windows registry and I could see the interfaces and properties through oleviewer.exe. The issue i am facing - for the last few days! - is that i could easily access the methods within the DLL however for the life of me, I couldn't get any events to work. If I write the follownig code: Win32::OLE->WithEvents($myObj,\&captureEvent) I get an error message saying - "No Such Interface Supported". And if i specify an interface that i can see in Oleviwer.exe - e.g Win32::OLE->WithEvents($myObj,\&captureEvent,'IDataEvents'); I get an error message saying - "Not Implemented". Any pointers as to what could be wrong? I have been searching for an answer on the Net for a while but wasn't able to find any hence any help would be greatly appreciated. Regards

In reply to Win32::OLE Events by mperlsyd

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.