コード例 #1
0
 protected virtual void OnReceivePrintMessage(ZipDLLPrintMessageEventArgs e)
 {
     if (ReceivePrintMessage != null)
     {
         ReceivePrintMessage(this, e);
     }
 }
コード例 #2
0
        //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);
        }
コード例 #3
0
 private void zipObj_ReceivePrintMessage(object sender, ZipDLLPrintMessageEventArgs e)
 {
     textBox1.Text = e.PrintMessage + "\r\n";
     Application.DoEvents();
 }
コード例 #4
0
        //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;
        }
コード例 #5
0
 protected virtual void OnReceivePrintMessage(ZipDLLPrintMessageEventArgs e)
 {
     if (ReceivePrintMessage != null)
     {
         ReceivePrintMessage(this, e);
     }
 }
コード例 #6
0
ファイル: Form1.cs プロジェクト: wromerogithub/libs
 private void zipObj_ReceivePrintMessage(object sender, ZipDLLPrintMessageEventArgs e)
 {
     textBox1.Text = e.PrintMessage + "\r\n";
     Application.DoEvents();
 }