private void button1_Click(object sender, EventArgs e) { cbDelegate fnA = new cbDelegate(cbA); cbDelegate fnB = new cbDelegate(cbB); StringBuilder bob = new StringBuilder(64); int iTest = 1; textOut.AppendText("iTest = " + iTest); iTest = setNum(42); textOut.AppendText("\niTest = " + iTest); iTest = getNum(); textOut.AppendText("\niTest = " + iTest); iTest = setStr("Derp"); textOut.AppendText("\niTest = " + iTest); iTest = getStr(bob); bob.Length = iTest; textOut.AppendText("\n" + iTest + "\n" + bob); regCbA(fnA); regCbB(fnB); cbEvent(0); cbEvent(42); cbEvent(2); textOut.AppendText("\n\n"); }
private void button1_Click(object sender, EventArgs e) { cbDelegate fnA = new cbDelegate(cbA); cbDelegate fnB = new cbDelegate(cbB); StringBuilder bob = new StringBuilder(64); int iTest = 1; textOut.AppendText("iTest = " + iTest); iTest = setNum(42); textOut.AppendText("\niTest = " + iTest); iTest = getNum(); textOut.AppendText("\niTest = " + iTest); iTest = setStr("Derp"); textOut.AppendText("\niTest = " + iTest); iTest = getStr(bob); bob.Length = iTest; textOut.AppendText("\n" + iTest + "\n" + bob); regCbA(fnA); regCbB(fnB); cbEvent(0); cbEvent(42); cbEvent(2); textOut.AppendText("\n\n"); }
public static extern void regCbB(cbDelegate cbd);
public static extern void regCbB(cbDelegate cbd);