puff has asked for the wisdom of the Perl Monks concerning the following question:
When handling the event my perl code is entered with:Private Sub object_NewWindow2( _ ByRef ppDisp As Object, _ ByRef Cancel As Boolean)
In my handler I create a new IE object with:sub ie_events(){ my( $ie, $event, @args ) = @_;
Now my question. What is the proper way to set @args to return?my $ie = Win32::OLE->new( 'InternetExplorer.Application' ); Win32::OLE->WithEvents($ie, \&ie_events, 'DWebBrowserEvents2' );
Eventually leads to crashes. Given that the return should be a ppDisp what should I do?$args[0]->Put( $ie ); $args[1]->Put( 0 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE and IE automation
by johnnywang (Priest) on Jan 06, 2006 at 18:30 UTC | |
by puff (Beadle) on Jan 06, 2006 at 18:47 UTC |