paulorfmmb has asked for the wisdom of the Perl Monks concerning the following question:
Need your help Monks,
I'm trying to pass a array to a .NET DLL. I created a COM object with my DLL using 392275. But I when I try to pass an array to my function I get this response:
Win32::OLE(0.1712) error 0x8002000e: Number of parameters invalid in METHOD/PROPERTYGET "Test"
Here is my Perl code:
use Win32::OLE; $hl = new Win32::OLE('TestDot.myClass') or die $!; my @ptrObject = (5, 10, 10); my $ret = $hl->Test(@prtObject); print(Win32::OLE->LastError()."\n");
Here my .NET function:
namespace TestDot { public unsafe class myClass { public int Test(int *ptr) { return ptr[1]; } } }
|
|---|