in reply to Passing a pointer to a .NET DLL

Looks to me as though the C# method expects one parameter but you're sending in three.

That said, I am not familiar with Win32::OLE, so I'm unsure if that module sends a pointer to the array to the method (doesn't appear that way though).

Replies are listed 'Best First'.
Re^2: Passing a pointer to a .NET DLL
by Anonymous Monk on May 10, 2018 at 16:29 UTC

    In other words, what happens if you pass \@prtObject rather than @prtObject?

      I get this response:

      Win32::OLE(0.1712) error: 0x80070057: "Incorrect parameter" in METHOD/PROPERTYGET "Test"

        Does sending in an array work correctly if your Test() accepts a List<int>?