StephenLL has asked for the wisdom of the Perl Monks concerning the following question:
I have a COM DLL which has a method called RLVersion. The way I call it in VBA is the following:
Set MyObject = CreateObject("RL.RLClass") call MyObject.RLVersion(1,y) msgbox(y)
The 1 tells it the number of output arguements and y is obviously the output arguement. It passed back a 6 character string.
and this works fine.
Here is one of my many attempts at converting it to Perl. The WIn32::OLE works, but calling the RLVersion (method) does not.
use Win32::OLE qw(in with); my $RL = Win32::OLE->new('RL.RLlass') or die "oops\n"; my $myoutput = $RiskLib->RiskLibVersion->Call(1);
I would appreciate any help. I need to prove that this can work before I can start to learn perl and move completely away from vb/vbscript.
Thanks for any help you can provide.
Stephen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling COM method
by Mr. Muskrat (Canon) on Feb 05, 2005 at 21:55 UTC | |
by StephenLL (Initiate) on Feb 05, 2005 at 23:04 UTC | |
|
Re: Calling COM method
by Jenda (Abbot) on Feb 05, 2005 at 23:30 UTC |