Migrating from ArcGIS 9.x to 9.2
|
In this topic
About migrating from ArcGIS 9.x to 9.2
This document highlights changes made between ArcObjects 9 and 9.1 and the new ArcGIS 9.2. It takes you through the steps to move existing ArcObjects 9 or 9.1 code to ArcObjects 9.2 code.
The following outlines the applicable changes:
- At ArcGIS 9.2, all custom ArcGIS stand-alone and executable applications must perform license initialization at application start time. Any existing 9 or 9.1 custom ArcGIS stand-alone applications not containing license initialization will fail when run on the 9.2 platform. To get your code working with 9.2, you will have to specify the distinct licenses that your application can and will use. This can be done with either the AoInitialize object (both on ArcGIS Engine and ArcGIS Desktop) or through the LicenseControl (for control-based Engine applications).
- The ControlsCommands assembly was renamed and is now called Controls. You will have to fix the assembly reference and replace it with the new ESRI.ArcGIS.Controls.dll assembly. The Controls category registration did not change; it is still ControlCommands. For more information, see How to update ArcGIS Engine Controls applications from 9.1 to 9.2.
See the following code example:
[C#]
// ArcGIS 9.1 version.
using ESRI.ArcGIS.ControlCommands;
// ArcGIS 9.2 version.
using ESRI.ArcGIS.Controls;
[VB.NET]
' ArcGIS 9.1 version.
Imports ESRI.ArcGIS.ControlCommands
' ArcGIS 9.2 version.
Imports ESRI.ArcGIS.Controls
- All specific controls assemblies have been deprecated and their contents merged into the Controls assembly. The old assemblies were left in place to support legacy code; however, using them will result in a compilation warning stating that the assembly has been deprecated. For example, ESRI.ArcGIS.AxMapControl and ESRI.ArcGIS.MapControl are deprecated and, instead, you need to use ESRI.ArcGIS.AxControls and ESRI.ArcGIS.Controls. For more details, see How to update ArcGIS Engine Controls applications from 9.1 to 9.2.
- In ArcGIS 9.2, Visual Studio 2003 is no longer supported and the integrated development environment (IDE) add-ins no longer exist. Instead, ArcGIS 9.2 introduced the .NET IDE Integration Framework, which allows users to do the following:
- Some of the utilities available in 9 and 9.1 (such as the Library Locator) can be found through the Start menu under All Programs, ArcGIS, Developer Tools.
- The ESRI.ArcGIS.Utility assembly has been deprecated and replaced by the ESRI.ArcGIS.ADF assembly. Existing references to the Utility assembly will still compile; however, they will generate compilation warnings.
See Also:
Overview: ArcGIS Visual Studio IDE Integration FrameworkAbout the ArcGIS .NET code converterControlsHow to update ArcGIS Engine Controls applications from 9.1 to 9.2