Upgrading the program developed by ArcGIS 9.3 to the environment of arcgis10 is not complicated. The specific steps are as follows: 1. Replace all references of 9.3 in the original project. Otherwise, unexpected errors may occur. 2. Add the following during program initialization:Code(All AE classes must be called before ): // Initialize AE 10.0 If (! ESRI. ArcGIS. runtimemanager. BIND (ESRI. ArcGIS. productcode. ENGINE )) { If (! ESRI. ArcGIS. runtimemanager. BIND (ESRI. ArcGIS. productcode. desktop )) { Throw new exception ("unable to bind to ArcGIS runtime ..."); } } In this way, you can bind the program to the running environment of arcgisruntime or desktop. If it is a secondary development of desktop, this item is not required. I have not changed other codes. The license is based on the previous practice (I have not tried to cancel authorization) and the program runs normally. 3. If it is not a secondary development of version 10, the program may run normally, but the command or toolbar generated by the program cannot be seen In ArcMap. In this case, you need to find the categories.exe file under the ArcGIS installation directory. \ ArcGIS \ topics top10.0 \ bin, and click run:
Click "category importer..." at the bottom... Select the project for your program development, click Apply changes, and restart debugging or run ArcMap. The selected button should appear in the user button option (not successful currently) |