Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Passing a pointer to a .NET DLL

by stevieb (Canon)
on May 10, 2018 at 14:21 UTC ( [id://1214329]=note: print w/replies, xml ) Need Help??


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>?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214329]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found