A lot of native C ++ codes are actually just compiled and run in C ++ / CLI. It really is a kind of hybrid compiler that can call Win32 native functions and use standard C libraries such as OpenGL. You can even directly invoke COM interfaces (anything you can do with your own C ++ compiler).
The .Net library is also available, but you create managed classes for them (using the ref class keyword). You will use gcnew to allocate memory for these classes (from the garbage heap). Memory for regular classes is still allocated using new and delete (from a standard, garbage-free heap).
In short, you can switch to .Net in bits and pieces, although there is still some friction when switching between managed and unmanaged classes.
I found this book useful: Pro Visual C ++ / CLI .
Tarydon
source share