This documentation is archived and is not being maintained.

Managed Extensions for C++

.NET Framework 1.1

Starting with Visual C++ .NET, the standard C++ language has been extended to provide support for managed programming. Managed Extensions for C++ comprise of a set of keywords and attributes.

For each file using Managed Extensions, include the following code at the beginning of the file:

#using <mscorlib.dll>
using namespace System; // Only include to access the .NET Framework classes

In addition, you must use the /clr (common language runtime compilation) compiler option when compiling the application.

In This Section

When to Use Managed Extensions for C++
Explains the scenarios for which Managed Extensions are the best development choice.
Managed C++ Project Types
Describes the templates Visual C++ provides for creating various kinds of Managed Extensions projects.
Introduction to Managed Extensions for C++
Provides a basic discussion of the Managed Extensions feature set and introduces areas that will be new to C++ developers.
Working with Managed Extensions for C++
Provides links to topics covering issues and techniques for using Managed Extensions.
Managed Extensions for C++ Reference
Provides links to reference material on keywords, pragmas, compiler and linker options, attributes, and preprocessor directives.
Managed Extensions for C++ Specification
Provides the language specification, including characteristics and constraints for all elements of Managed Extensions, as well as sample code.
Managed Extensions for C++ Migration Guide
Provides details on porting existing applications to Managed Extensions applications.