AE+C#开发问题值一——许可问题

来源:互联网 发布:网络主播背景歌曲大全 编辑:程序博客网 时间:2024/04/30 01:52

今天自己试写了自己第一个AE开发程序,按照书上的配置后,弹出如下的对话框

 

 

解决方案:只需要在主程序的入口加入下面一句话就行了,打开progam.cs加入下面一句话就行了。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace test1
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);//加入的那句话
            Application.Run(new Form1());
        }
    }
}

原创粉丝点击