1.将DLL复制到工程下
2.添加如下代码
[DllImport("DLL.dll")] public static extern int Add(int a, int b); private void button1_Click(object sender, EventArgs e) { string str; str = Add(5,3).ToString(); MessageBox.Show(str); }
2022-07-29 16:03:49
1.将DLL复制到工程下
2.添加如下代码
[DllImport("DLL.dll")] public static extern int Add(int a, int b); private void button1_Click(object sender, EventArgs e) { string str; str = Add(5,3).ToString(); MessageBox.Show(str); }
下一篇:UESTC windy数位dp