• 大小: 1.63MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-26
  • 语言: C#
  • 标签: VS2005  IDL  

资源简介

IDLDrawWidget应用开发例子程序,C#调用IDL接口。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using COM_IDL_connectLib;
using satstretchLib;

namespace IDLDrawWidget
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            //控件调用成功
            int n;
            this.axIDLDrawWidget1.IdlPath = @“D:\Program Files\ITT\IDL71\bin\bin.x86\idl.dll“;
            n = axIDLDrawWidget1.InitIDL((int)this.Handle);
            if (n == 0)
            {
                MessageBox.Show(“IDL 控件初始化失败“);
            }
            axIDLDrawWidget1.SetOutputWnd((int)richTextBox1.Handle);
            string d = “d“;
            axIDLDrawWidget1.ExecuteStr(“restore‘satstretch.sav‘“);
            axIDLDrawWidget1.ExecuteStr(“d=satstretch()“);
            string str = axIDLDrawWidget1.GetNamedData(d).ToString(); 

            //通用组件调用成功
            string d = “d“;
            COM_IDL_connectClass COM = new COM_IDL_connectClass();
            COM.Createobject(0 0 0);
            string app=Application.StartupPath;
            COM.ExecuteString(“.COMPILE “+app+“\\satstretch.pro“);
            COM.ExecuteString(“d=satstretch()“);
            string str = COM.GetIDLVariable(d).ToString();

            //组件调用
            string d = “d“;
            satstretchClass SSH = new satstretchClass();
            SSH.Createobject(0 0 0);
            string app = Application.StartupPath;
            SSH.ExecuteString(“.COMPILE “ + app + “\\satstretch.pro“);
            SSH.ExecuteString(“d=satstretch()“);
            string str = SSH.GetIDLVariable(d).ToString();
        }

        private void Form1_Load(object sender EventArgs e)
        {

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     562275  2010-04-01 23:07  IDLDrawWidget\IDLDrawWidget\bin\Debug\222

     文件        269  2010-04-01 23:07  IDLDrawWidget\IDLDrawWidget\bin\Debug\222.HDR

     文件      28672  2008-11-17 16:46  IDLDrawWidget\IDLDrawWidget\bin\Debug\AxInterop.IDLDRAWX3Lib.dll

     文件     562275  2008-11-17 17:52  IDLDrawWidget\IDLDrawWidget\bin\Debug\ddd

     文件        269  2008-11-17 17:52  IDLDrawWidget\IDLDrawWidget\bin\Debug\ddd.hdr

     文件     507904  2009-08-19 17:22  IDLDrawWidget\IDLDrawWidget\bin\Debug\hd423m.dll

     文件     102400  2009-08-19 17:22  IDLDrawWidget\IDLDrawWidget\bin\Debug\hm423m.dll

     文件      20480  2010-04-01 23:46  IDLDrawWidget\IDLDrawWidget\bin\Debug\IDLDrawWidget.exe

     文件      24064  2010-04-01 23:46  IDLDrawWidget\IDLDrawWidget\bin\Debug\IDLDrawWidget.pdb

     文件       5632  2005-11-11 22:25  IDLDrawWidget\IDLDrawWidget\bin\Debug\IDLDrawWidget.vshost.exe

     文件      19456  2010-04-01 23:14  IDLDrawWidget\IDLDrawWidget\bin\Debug\Interop.COM_IDL_connectLib.dll

     文件      40960  2010-04-01 22:59  IDLDrawWidget\IDLDrawWidget\bin\Debug\Interop.IDLDRAWX3Lib.dll

     文件      19456  2010-04-01 23:43  IDLDrawWidget\IDLDrawWidget\bin\Debug\Interop.satstretchLib.dll

     文件    1163264  2009-08-20 15:11  IDLDrawWidget\IDLDrawWidget\bin\Debug\NCSEcw.dll

     文件     573440  2009-08-20 15:11  IDLDrawWidget\IDLDrawWidget\bin\Debug\pe_core.dll

     文件     901120  2009-08-20 15:11  IDLDrawWidget\IDLDrawWidget\bin\Debug\pe_fact.dll

     文件        638  2010-04-01 23:11  IDLDrawWidget\IDLDrawWidget\bin\Debug\SATSTRETCH.pro

     文件      16576  2010-04-01 23:11  IDLDrawWidget\IDLDrawWidget\bin\Debug\SATSTRETCH.sav

     文件       1963  2010-04-02 00:28  IDLDrawWidget\IDLDrawWidget\Form1.cs

     文件       4591  2008-11-17 14:48  IDLDrawWidget\IDLDrawWidget\Form1.Designer.cs

     文件       6980  2008-11-17 14:48  IDLDrawWidget\IDLDrawWidget\Form1.resx

     文件       4747  2010-04-01 23:44  IDLDrawWidget\IDLDrawWidget\IDLDrawWidget.csproj

     文件      28672  2008-11-17 16:46  IDLDrawWidget\IDLDrawWidget\obj\Debug\AxInterop.IDLDRAWX3Lib.dll

     文件        842  2008-11-17 16:46  IDLDrawWidget\IDLDrawWidget\obj\Debug\IDLDrawWidget.csproj.GenerateResource.Cache

     文件        838  2010-04-01 23:43  IDLDrawWidget\IDLDrawWidget\obj\Debug\IDLDrawWidget.csproj.ResolveComReference.cache

     文件      20480  2010-04-01 23:46  IDLDrawWidget\IDLDrawWidget\obj\Debug\IDLDrawWidget.exe

     文件       1022  2010-04-01 23:46  IDLDrawWidget\IDLDrawWidget\obj\Debug\IDLDrawWidget.Form1.resources

     文件      24064  2010-04-01 23:46  IDLDrawWidget\IDLDrawWidget\obj\Debug\IDLDrawWidget.pdb

     文件        180  2010-04-01 23:46  IDLDrawWidget\IDLDrawWidget\obj\Debug\IDLDrawWidget.Properties.Resources.resources

     文件      19456  2010-04-01 23:14  IDLDrawWidget\IDLDrawWidget\obj\Debug\Interop.COM_IDL_connectLib.dll

............此处省略24个文件信息

评论

共有 条评论