public void MultiDispense() { CDMMULTIDISPENSE cdmmultidispense = new CDMMULTIDISPENSE(); CBXITEM cbxitem = new CBXITEM(); cbxitem.cxbox = new byte[6]; Byte test = 0; test = (Byte)Convert.ToSByte(Slot[0]); cbxitem.cxbox[0] = test; test = (Byte)Convert.ToSByte(Slot[1]); cbxitem.cxbox[1] = test; test = (Byte)Convert.ToSByte(Slot[2]); cbxitem.cxbox[2] = test; test = (Byte)Convert.ToSByte(Slot[3]); cbxitem.cxbox[3] = test; cbxitem.cxbox[4] = 0; cbxitem.cxbox[5] = 0; if (!myDll.MFSCommCDM_MultiDispense(ref cbxitem, ref cdmmultidispense)) { Console.WriteLine("MULTI DISPENSE FAILED"); } else { Console.WriteLine("MULTI DISPENSE SUCCESS"); } }
extern public static bool MFSCommCDM_MultiDispense(ref CBXITEM cbx, ref CDMMULTIDISPENSE ret);