Thank you for your reply.

I had stumbled upon Win32::OLE::Variant, but I was and still am confounded by it and by its relationship to Win32::API.

I have a DLL, but I don't know that it's an "OLE server". Can I use Win32::OLE::Variant in tandem with Win32::API? If so, how?

Here's the documentation of Win32::OLE::Variant->Dim():

Returns a list of array bounds for a VT_ARRAY variant. The list contains an array reference for each dimension of the variant's SAFEARRAY. This reference points to an array containing the lower and upper bounds for this dimension.

Working backwards from that, which I don't grok, into a working Perl script seems daunting. Is it hopeless?

I confess I thought using Perl to do a tad bit of Windows programming was going to be easier.

Jim


In reply to Re^2: Getting a Variant Array From a Win32 DLL Function by Jim
in thread Getting a Variant Array From a Win32 DLL Function by Jim

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.