Ok, here's the setup from the VB form sample. Note the CLSID string, and the reference to the ocx module.
VERSION 5.00
Object = "{9EA22D70-0EAA-4F54-80BB-3AA640DF1B96}#2.0#0"; "HALi.ocx"
Begin VB.Form Form1 
...blah...blah...
So I tried this
use Win32::OLE;
my $HALi = Win32::OLE->new('{9EA22D70-0EAA-4F54-80BB-3AA640DF1B96}');
When I run it, it does not return any errors. Cool!

So I move to the next step and add the init function.

The VB init is:

HALi.Init()
So I translate this to:
$HALi->{HALi}->Init();
I get a "Can't call method Init on undefined value" error.

It's late and I'm tired, and probably missing something obvious. I'm getting past the server creation, but hanging on the init function. Maybe a fresh look tomorrow will show me the error of my ways. Suggestions appreciated.

Nathan


In reply to Re^2: More on OLE from Perl by wa4otj
in thread More on OLE from Perl by wa4otj

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.