Program.cs
资源名称:vcengine.rar [点击查看]
上传用户:songlsx
上传日期:2022-06-19
资源大小:2227k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- using System;
- using System.Collections.Generic;
- using System.Windows.Forms;
- using ESRI.ArcGIS.esriSystem;
- namespace LinGIS
- {
- static class Program
- {
- private static LicenseInitializer m_AOLicenseInitializer = new LinGIS.LicenseInitializer();
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- //ESRI License Initializer generated code.
- m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngine },
- new esriLicenseExtensionCode[] { });
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new MainFrm());
- //ESRI License Initializer generated code.
- //Do not make any call to ArcObjects after ShutDownApplication()
- m_AOLicenseInitializer.ShutdownApplication();
- }
- }
- }