Nitrox has asked for the wisdom of the Perl Monks concerning the following question:
RegisterEventCB takes a long, and a reference to a form with a HSEvent(parms as variant) method declared public.
Here is a snippet from my Perl version, which doesn't throw an error, but passing $cb to Data::Dumper shows its empty.Private Sub Form_Load() Set hs = New HS.Application hs.RegisterEventCB 3, Me End Sub
$obj = Win32::OLE->CreateObject('HS.Application'); $self = bless {}; $cb = $obj->RegisterEventCB(3,$self); print Dumper(\$cb); sub HSEvent{ print Dumper(\@_); }
Does anyone see what I'm doing wrong here? Thanks in advance.
-Nitrox
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE Usage
by LanceDeeply (Chaplain) on Feb 06, 2003 at 23:06 UTC | |
|
Re: Win32::OLE Usage
by tachyon (Chancellor) on Feb 06, 2003 at 23:38 UTC | |
by Nitrox (Chaplain) on Feb 07, 2003 at 03:15 UTC | |
by MZSanford (Curate) on Feb 07, 2003 at 20:44 UTC | |
|
Re: Win32::OLE Usage
by Nitrox (Chaplain) on Feb 07, 2003 at 03:28 UTC |