I have a method in my native dll, that I want to use. The method returns an object of a type that is also in my native dll.I am trying to write a c++/CLI wrapper.
Now,
- Can I get a return value as the object using C++/CLI and how do I do that?
- Can we store and pass the native C++ object?
- Should I need to create my own class resembling the native C++ class?
- How would I marshal a class?
For Example,My native dll has these classes,
class X
{
/* some props and methods. */
};
Class Y
{
X* someMethod();
};
I need to wrap the someMethod
class using C++/CLI. Will I be able to get the return value in the CLI?
value class
I think. - Kerrek SB