protected virtual void OnReceivePrintMessage(ZipDLLPrintMessageEventArgs e) { if (ReceivePrintMessage != null) { ReceivePrintMessage(this, e); } }
//The zip32.dll passes activity messages to the declared byte array. Decode //the byte array to see the message protected int ZDLLPrint(ref ZipCBChar msg, uint x) { string s = string.Empty; if (msg.ch[0] == 0) { return(0); } s = m_Ascii.GetString(msg.ch, 0, (int)x); //Raise this event ZipDLLPrintMessageEventArgs e = new ZipDLLPrintMessageEventArgs(s); OnReceivePrintMessage(e); return(0); }
private void zipObj_ReceivePrintMessage(object sender, ZipDLLPrintMessageEventArgs e) { textBox1.Text = e.PrintMessage + "\r\n"; Application.DoEvents(); }
//The zip32.dll passes activity messages to the declared byte array. Decode //the byte array to see the message protected int ZDLLPrint(ref ZipCBChar msg, uint x) { string s = string.Empty; if (msg.ch[0] == 0) return 0; s = m_Ascii.GetString(msg.ch,0, (int)x); //Raise this event ZipDLLPrintMessageEventArgs e = new ZipDLLPrintMessageEventArgs(s); OnReceivePrintMessage(e); return 0; }