function c=main(a,b) c=a+b; end
namespace WindowsFormsApplication1 { public partial class form1.form { [DllImport("main.dll")] public static extern int main (int a, int b); public form1() { InitializeComponent(); } private void button1_click(object sender, EventArgs e) { int a,b,c; a=convert.toint16(textbox1.text); b=convert.toint16(textbox2.text); c=main(a,b); textbox3.text=c.ToString(); } } }
main()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)