How do I call a function defined in a C++ DLL that has a parameter of type int *, from inside C# code ?

Posted by Ashutosh on Stack Overflow See other posts from Stack Overflow or by Ashutosh
Published on 2011-02-03T14:58:56Z Indexed on 2011/02/03 15:25 UTC
Read the original article Hit count: 269

Filed under:
|
|

I have a native regular C++ Dll which I want to call from C# code, so i created C++/CLI class (as described here and here) which will include managed C++ code and which can be called by any C# code directly and which can make calls inturn to native unmanaged C++.

One of function in native C++ dll has parameter of type int *. How do I declare in wrapper function and how can i convert it into int *?

© Stack Overflow or respective owner

Related posts about c#

Related posts about c++