Managed Extensions for C++ Programming
The .NET Framework is a new computing platform that simplifies application development in highly distributed environments. The .NET Framework has two main components: the common language runtime and the .NET Framework class library. The common language runtime manages code at execution time, providing core services such as memory management, thread management, and remoting, while also enforcing strict type safety and other forms of code accuracy that ensure security and robustness. The class library is a comprehensive, object-oriented collection of reusable types that you can use to develop applications. For more information about the .NET Framework, see Overview of the .NET Framework.
Managed Extensions for C++ was created to extend the C++ language, allowing you to use the .NET Framework and target the common language runtime without having to learn a new programming language.
To learn more about Managed Extensions, expand one of the following nodes to view links to topics grouped by conceptual area, by development stage, or by table of contents organization.
.NET Framework Background
- Inside the .NET Framework
- Provides a starting point for exploring the .NET Framework SDK.
Language Background
- Getting Started
- Provides links to topics discussing how to get started using Managed Extensions in your applications.
Language Elements
| |
| Pointer Types |
|
Interoperability
- Interoperability
- Provides links to topics discussing interoperability between managed and unmanaged components.
- Pinning Pointers
- Describes overriding of garbage collection to safely interact with native code.
- Data Marshaling
- Discusses passing data between the common language runtime and native code.
- COM Interoperability
- Describes techniques for using existing COM objects through managed code.
- Remoting
- Discusses remoting issues such as sockets, transports, formatters, DCOM vs. .NET, custom marshaling, and client vs. server data management.
Code
Getting Started
- Background
- Provides a brief overview of the .NET Framework and how Managed Extensions can help you write managed code.
- Development Scenarios
- Discusses scenarios in which you would target the .NET Framework and use Managed Extensions.
- Frequently Asked Questions
- Provides specific answers to various questions about using Managed Extensions.
- Additional Resources for Managed Extensions for C++ Programmers
- Provides links to additional resources, such as Web sites and newsgroups.
Migrating Your Applications
- Adding Support for Managed Extensions for C++ to an Existing Application
- Provides steps to add Managed Extensions support to an existing C++ application.
- Common Migration Issues
- Discusses and provides solutions to common issues encountering when migrating existing C++ applications to Managed Extensions.
- Managed Extensions for C++ Migration Guide
- Provides details on porting existing applications to Managed Extensions applications.
Creating Projects
- Managed Extensions for C++ Projects
- Provides links to topics discussing the different project template types available in Visual C++.
- File Types Created for Managed Extensions for C++ Projects
- Describes the files created for Managed Extensions projects.
- Managed Extensions for C++ Windows Applications
- Provides links to topics describing how to link your Windows applications to the C run-time library and how to add Windows Forms to your projects.
- Creating Windows Applications
- Provides links to topics discussing how to create Windows applications with the Windows Forms Designer.
- Adding Functionality with Code Wizards
- Describes adding classes, methods, variables, and other elements to your project to add functionality.
- Specifying Project Settings with Property Pages
- Describes how to use the Property Pages dialog box to control your project settings.
Adding Functionality
- Assemblies, Attributes, and Metadata
- Describes the advantages of using assemblies, attributes, and metadata in your managed code.
- Exception Handling
- Discusses exception handling with managed code and provides links to topics for handling with the System::Exception class.
- Interoperability
- Provides links to topics discussing interoperability between managed and unmanaged components.
- Managed Types
- Provides links to topics discussing how to access .NET features with managed types, which support features of the common language runtime.
- Reference
- Provides links to reference material on keywords, pragmas, compiler and linker options, attributes, preprocessor directives, and managed types.
- Samples
- Provides links to samples that show how to use Managed Extensions to write .NET Framework applications.
- Tutorials
- Provides advanced tutorials on using Managed Extensions for C++ and interoperating with managed and unmanaged code.
- Getting Started
- Provides links to topics discussing how to get started using Managed Extensions in your applications.
- Language 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.
- Migrating Your Applications
- Provides links to topics with more information about migrating existing applications to Managed Extensions.
- Creating Projects
- Provides links to the different project templates available for Managed Extensions.
- Adding Functionality
- Provides links to topics discussing how to write code with Managed Extensions.
- Reference
- Provides links to reference material on keywords, pragmas, compiler and linker options, attributes, and preprocessor directives.
- Samples
- Provides links to samples that show how to use Managed Extensions to write .NET Framework applications.
- Tutorials
- Provides advanced tutorials on using Managed Extensions for C++ and interoperating with managed and unmanaged code.
- Visual C++
- Provides links to different areas of the Visual Studio and Visual C++ documentation set.