Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Win32::OLE Usage

by tachyon (Chancellor)
on Feb 06, 2003 at 23:38 UTC ( [id://233321]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://233321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found