<p>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;</p><p> </p><p>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!", "测试"); } } } </p>