Http://www.cnblogs.com/junyuz/archive/2011/08/29/2158090.html
One obvious change in AE10 is Run-time binding, ArcGIS10 some obvious product architecture changes. The most obvious advantage of the new architecture is the independent ArcGIS desktop and engine runtime. You can install ArcGIS Desktop and engine in a different directory. You can also make patches for engine and desktop, respectively. But this change in architecture requires that you bind your engine program and custom components to the products you specify on your machine. Standalone applications can be either bound to desktop or bound to engine's runtime. However, the binding is done before the program uses AO.
So, how should bind it (C # Implementation)
Add a reference first:
esri.arcgis.version
And then
ESRI. ArcGIS.RuntimeManager.Bind (Productcode.engine)
So, the binding is over, is not very simple AH.
Some of the other new functions
runtimemanager.bindlicense ()
Simultaneous initialization of permissions at runtime
runtimemanager.installedruntimes
Returns the installed runtime
runtimemanager.activeruntime
Returns the currently bound runtime
runtimeinfo
Access to information such as path, version, etc.
This information is easy to find on the Internet, then, if it is in C + + How to achieve it? Press CTRL + C to copy code press CTRL + C to copy code
This is the main code, but just so, compile the time will be problematic, so before binding, you need to loadversion, add the following code in stdafx.h press CTRL + C copy Code press CTRL + C copy Code
At the beginning of the InitInstance (), call the
:: CoInitialize (NULL);
Esri_set_version (Esriarcgisengine, 10.0)
Initializelicense (Esrilicenseproductcodeengine);
At this point, the license initialization and Run-time bindings have been completed.
Resources:
http://help.arcgis.com/EN/sdk/10.0/ArcObjects_NET/conceptualhelp/index.html#//000100000nmm000000
Http://hi.baidu.com/o%B3%A3%BD%F8/blog/item/eb9e590dc04a7d0a95ca6ba8.html