What I am looking for is a step by step guide that will allow me to attach to the dll and converse with it

If you're simply trying to access the functionality of mydll, that's usually done by using either Win32::API or Inline::C (if you have a C compiler). I prefer Inline::C. It comes with an excellent cookbook (accessible as perldoc Inline::C-Cookbook) which includes an example of how to access user32.dll's MessageBoxA() function. Win32::API has reasonable documentation, too.

I've never used Win32::OLE, and don't really understand its application - so perhaps I'm missing the point. I did try running your code wrt user32.dll and got precisely the same errors as you.

Cheers,
Rob

In reply to Re: Establishing a reference with a COM ActiveX component by syphilis
in thread Establishing a reference with a COM ActiveX component by holandes777

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.