现在的位置: 首页 > 综合 > 正文

AE+C#开发问题1

2013年09月16日 ⁄ 综合 ⁄ 共 573字 ⁄ 字号 评论关闭

今天自己试写了自己第一个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());
        }
    }
}

抱歉!评论已关闭.