易语言中新建个Dll文件
C#中和一般的DLL一样调用using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace e_dll
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
[DllImport("msg.dll")]
public static extern void msgbox(string text,string title);
private void button1_Click(object sender, EventArgs e)
{
msgbox("成功调用易语言dll!", "测试");
}
}
}
收藏 | 0点赞 | 0