直接上代码
namespace MyTest
{
public partial class test
{
[DllImport("Win32Dll.dll")]
public static extern void Test(int text);
private void button1_Click(object sender, RibbonControlEventArgs e)
{
Test(1111);
}
}
}
注意:win32dll和C#必须同时为64位或者32位