I have a C# project and I need a C++ native code to interact with the C# code. To do so, I am using a C++/CLI class wrapper that will call a C++ class.
As far as I understand, if a C++ class has a ref
behind it's declaration, it's going to be compiled as managed code. And if it doesn't have it, it will be compiled as native code.
Is this assumption correct or do I need to give the compiler further instructions to assure that my class will be native code?
ref class
can contain both native and CLI types. e.g. Aref class
that has avoid*
pointer in it. blogs.msdn.com/b/abhinaba/archive/2012/11/14/… – Mickyref
in C++. – user4581301