in reply to Win32::OLE Usage

These two are not equivalent.

hs.RegisterEventCB 3, Me $cb = $obj->RegisterEventCB(3,$self);

You note that:

RegisterEventCB takes a long, and a reference to a form with a HSEvent(parms as variant) method declared public

You are passing a long (digit 3) and a blessed anon hash to the RegisterEventCB method when it wants a reference to a form (object). I think you need to generate the form object somewhere - Me.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Win32::OLE Usage
by Nitrox (Chaplain) on Feb 07, 2003 at 03:15 UTC
    I admit it was a stretch, but I was hoping that the second argument in $self would be equivalent to a Form.

    Anyone have an idea on how to generate a Form object in Perl?

    -Nitrox

      Unfortunatly, whatever code you are using sounds like it is designed specifically for use in VB. Because perl is using OLE in a non-GUI (in the VB sence) environment, there are no forms to pass. There may be some bastardisation of Win32::GUI which could produce a form handle, but i have yet to see it.I suspect that there is currently no way to create a form in perl, but i may be wrong.
      from the frivolous to the serious