Could not bind to a valid ArcGIS installation问题的解决
来源:互联网 发布:德州冠军软件 编辑:程序博客网 时间:2024/06/03 02:15
这个错误我是找了好多天才找到了
AE(ArcgisEngine)在用VC环境进行开发时,对license的初始化失败,
并在VC的编译输出窗口中提示Could not bind to a valid ArcGIS installation
是因为VC没找到Arcgis Engine的安装位置,参考官网的介绍(好不容易找到的)
http://help.arcgis.com/EN/sdk/10.0/ArcObjects_NET/conceptualhelp/index.html#//000100000nmm000000
Loading an ArcGIS runtime
对于独立的Arcgis 应用程序必须先绑定一个runtime,方法如下
// Load the ArcGISVersion library.
// This code is commonly placed in the StdAfx.h header file.
//这段代码放到stdafx.h里(或者放到主要的头文件中)
#import "libid:6FCCEDE0-179D-4D12-B586-58C88D26CA78" raw_interfaces_only no_implementation
--------------------------------------分割线--------------------------------------------------------------
// The following code can be used to bind to ArcGIS Engine Runtime:
//下面的代码要加在::AoInitialize(NULL);之后,IAoInitializePtr ipInit(CLSID_AoInitialize);之前
ArcGISVersionLib::IArcGISVersionPtr ipVer(__uuidof(ArcGISVersionLib ::VersionManager));
VARIANT_BOOL succeeded;
if (FAILED(ipVer->LoadVersion(ArcGISVersionLib::esriArcGISEngine, L "10.0", &succeeded)))
return 0;
------------------------------
例如 main.cpp
#import "libid:6FCCEDE0-179D-4D12-B586-58C88D26CA78" raw_interfaces_only no_implementation
#include <ArcSDK.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
int LocateTheArcgisVersion()
{
ArcGISVersionLib::IArcGISVersionPtr ipVer(__uuidof(ArcGISVersionLib::VersionManager));
VARIANT_BOOL succeeded;
if (FAILED(ipVer->LoadVersion(ArcGISVersionLib::esriArcGISEngine, L"10.0",&succeeded)))
return 0;
return 1;
}
int main(int argc, char **argv)
{
::AoInitialize(NULL);
LocateTheArcgisVersion();
// ArcGIS Engine licensing
IAoInitializePtr ipInit(CLSID_AoInitialize);
esriLicenseStatus status;
ipInit->Initialize(esriLicenseProductCodeEngine,&status);
if(status == esriLicenseCheckedOut)
{
cout<<"lisense ok";
}
::AoUninitialize();
system("PAUSE");
AoExit(0);
return 0;
}
- Could not bind to a valid ArcGIS installation问题的解决
- Could not bind to a valid ArcGIS installation问题的解决
- Could not bind to a valid ArcGIS installation问题的解决
- AE10 运行时绑定(解决Could not bind to a valid ArcGIS installation)
- 解决The environment variable JAVA_HOME does not point to a valid JVM installation 问题
- Android Studio 启动问题<does not point to a valid jvm installation>错误
- Android Studio 启动问题(does not point to a valid jvm installation)
- 解决android sdk 运行出现 could not install -smartsocket- listener- cannot bind to 127.0.0.1-5037-的问题
- does not point to a valid jvm installation
- 解决:Permission denied: make_sock: could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- Linux:解决Permission denied: make_sock: could not bind to address
- 解决java_home does not point a valid jvm的问题
- Could not copy all resources to....问题的解决
- Apache解决error setting limit (Operation not permitted)及could not bind to address 0.0.0.0:80 的方法
- AndroidStudio启动时发生The environment variable JAVA_HOMExxxdoes not point to a valid jvm installation的错误
- eclipse 出现The preferences for the xdoclet runtime does not point to a valid installation.错误的解决办法
- AE10 运行时绑定(解决Could not bind to a valid ArcGIS installation)
- 下个十年PC与服务器的发展变化
- Valgrind---linux上的程序调试和分析工具
- NGN的产生与发展(一)
- jQuery内容过滤选择器选择元素实例讲解
- Could not bind to a valid ArcGIS installation问题的解决
- 常见内部排序方法的比较以及选择
- Android Listview控件中的其他控件的焦点问题
- jQuery随机切换图片的小例子
- Linux命令行之逗趣无极限
- Eclipse 控制台输出乱码
- Windows 8小技巧
- 硝烟中的Scrum与XP
- JQuery 常用方法和事件详细介绍