I have a couple specific questions regarding mixing managed C++ with unmanaged C++:
- If I leave out
ref
andvalue
in a class/struct declaration, does that automatically make the class/struct unmanaged? Or do I still need to include the#pragma unmanaged
and#pragma managed
directives? - How compatible are unmanaged and managed types? For example, I can have an unmanaged object in a managed class, right? Can I pass an unmanaged class/struct to a managed function (ie. pass a std::string to a managed function)?
Thanks for your help,
Alex