博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
AE开发控制台程序 HRESULT:0x80040228 异常解决
阅读量:3700 次
发布时间:2019-05-21

本文共 570 字,大约阅读时间需要 1 分钟。

原因很简单,写的控制台应用程序,用不上ESRI的AxLicence控件,没有许可啊!!

那解决方法也很简单,就用代码写个Licence控件不就得了,就像是BS中写控件那样。

ESRI.ArcGIS.Controls.AxLicenseControl axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl()

axLicenseControl1.Enabled = true;           

axLicenseControl1.Location = new System.Drawing.Point(561, 225);           

axLicenseControl1.Name = "axLicenseControl1";           

axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState")));            axLicenseControl1.Size = new System.Drawing.Size(32, 32);           

axLicenseControl1.TabIndex = 1;

另外,更简单的方法,控制台程序添加License许可:

转载地址:http://zblcn.baihongyu.com/

你可能感兴趣的文章
Vue+SpringBoot+Mybatis-plus前后端交互实现登录功能(踩了好多坑!)
查看>>
git 上传管理项目执行命令
查看>>
常见编程命名缩写
查看>>
警示:SpringBoot后端:自己写的方法没有错啊 为什么总是报错!!java.lang.NullPointerException: null
查看>>
查询数据库中的数据字段不显示 或者 报Unknown column ‘xxx‘ in ‘field list‘错解决办法(踩坑)
查看>>
使用Mybatis-Plus时,注入mapper提示Could not autowire. No beans of ‘xxxMapper‘ type found.
查看>>
拦截器 路径不生效踩坑
查看>>
mysql 免安装版 下载 配置与完美卸载 (转载)
查看>>
ubuntu18.04安装zabbix-proxy实现自动注册
查看>>
ubuntu18.04 部署zabbix
查看>>
网络映射frp
查看>>
区块链部署
查看>>
grafana忘记登陆密码
查看>>
PyCharm安装requests模块
查看>>
Ansible常用模块介绍
查看>>
ubuntu18.04部署MongoDB
查看>>
Web页面执行shell命令
查看>>
Kubernetes(一) 跟着官方文档从零搭建K8S
查看>>
grafana-server页面配置
查看>>
入坑Golang——变量
查看>>