|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Upgrade Wizard-Generated Managed Extensions for C++ Code
Visual Studio wizards generate code in your source files, either when the project is created, or when functionality is added via a code wizard.
When upgrading a project, it is usually necessary to upgrade the wizard-generated code as well. For Microsoft Visual C++ 2005, a common scenario is upgrading code written with Managed Extensions for C++ to use new Visual C++ language features instead.
Upgrading Managed Extensions for C++
To upgrade code that uses Managed Extensions C++ code:
Convert the code manually, using the.
Use Microsoft Visual C++ 2005 to generate a new project of the same type, then either move your existing code into the new project or cut-and-paste the wizard-generated portions of the new project into the existing one.
For the most part, upgrading from Managed Extensions for C++ is just a matter of changing the syntax, but there are some semantic differences.