AE10 Runtime Bindings (resolve could not bind to a valid ArcGIS installation)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.