C++/CLI : Casting from unmanaged enum to managed enum
Assuming your native code is enum shape_type_e { stUNHANDLED = 0, //!< Unhandled shape data. stPOINT = 1 //!< Point data. … }; and your managed code is public enum class ShapeType { Unhandled = 0, Point = 1, … }; You can cast from the native to the managed using shape_type_e nativeST = stPOINT; … Read more