Since C++ already has object-oriented features, the VC++ implementation supplied with Visual Studio .NET provides support for managed code. At the minimum, you must include the following two lines at the top of your code:
#using <mscorlib.dll> using namespace System;
These give you access to the .NET classes. You must also add the /CLR compiler option when building the executable.
Details of working with the managed extensions for C++ are outside the scope of this book, so you should consult the documentation for more details.