ArcObjects runtime binding for VC++ developers
来源:互联网 发布:facebook登录网络异常 编辑:程序博客网 时间:2024/06/05 16:34
Loading an ArcGIS runtime
Stand-alone ArcGIS applications must locate an appropriate ArcGIS product installation before any ArcObjects code (including license initialization) is called. You must decide what runtime is needed for the application. This must be done whether the license initialization is carried out using the LicenseControl or by using the AoInitialize class. The application programming interfaces (APIs) used to bind to the ArcGIS runtime are in IArcGISVersion in the ArcGISVersionLib namespace. To bind to the runtime, make a call to the LoadVersion method. See the following code example:
To bind to a runtime, import the ArcGISVerison library and use the VersionManager method on the IArcGISVersion interface.
// Load the ArcGISVersion library.// This code is commonly placed in the StdAfx.h header file.#import "libid:6FCCEDE0-179D-4D12-B586-58C88D26CA78" raw_interfaces_only no_implementation// The following code can be used to bind to ArcGIS Engine Runtime:ArcGISVersionLib::IArcGISVersionPtr ipVer(__uuidof(ArcGISVersionLib ::VersionManager));VARIANT_BOOL succeeded;if (FAILED(ipVer->LoadVersion(ArcGISVersionLib::esriArcGISEngine, L "10.0", &succeeded))) return 0;
LoadVersion must be called after calling CoInitialize but before initializing a license.
IArcGISVersion contains the following methods, which can be used to find installed runtimes and the install locations of the runtimes:
- GetActiveVersion—Returns the product code, version number, and path to the runtime.
- GetVersions—Returns an enumeration of all the installed ArcGIS runtimes on the machine.
- ProductNameFromCode—Returns a product name for the given product code.
- LoadVersion—Binds to the specified ArcObjects runtime.
- ArcObjects runtime binding for VC++ developers
- ArcObjects
- C# for Delphi developers
- Books for Developers
- AI for Game Developers
- Talk: Google for developers
- Cryptography for Developers
- Rails for PHP Developers
- AutoHotkey scripts for developers
- Windows Vista for Developers
- Illuminations for Developers Keygen
- IOS 5 for Developers
- Android 4.1 for Developers
- Android 4.1 for Developers
- WebKit for Developers
- DDD for Rails Developers
- WebKit for Developers
- libraries for developers
- CCS“探针”使用的数据文件格式
- 百度统计的JS脚本原理分析
- 绘制中文强大的矢量图形库:Raphael JS 中文帮助文档及教程
- ubuntu13.04/kylin安装chrome问题解决
- android实现二维码,并将二维码保存至SD卡
- ArcObjects runtime binding for VC++ developers
- 孙鑫 Windows程序内部运行原理
- hdu 1879 prime 继续畅通工程
- gridview的OnRowDataBound必须存在 <Columns>
- C/C++明确定义了顺序点的概念:
- 浅谈 内存对齐
- 把Vim改装成一个IDE编程环境(图文) -- 续1
- 基因序列相似性问题CCR版(KM模式匹配)
- poj 3356 字符串编辑