예제 #1
0
// Callback for zip32.dll
        public static int DLLPrnt(ref CBChar fname, int x)
        {
            string s0        = null;
            int    xx        = 0;
            string sVbZipInf = null;

            // always put this in callback routines!
            // ERROR: Not supported in C#: OnErrorStatement

            s0 = "";
            for (xx = 0; xx <= x; xx++)
            {
                if (fname.ch[xx] == 0)
                {
                    xx = 99999;
                }
                else
                {
                    s0 = s0 + Strings.Chr(fname.ch[xx]);
                }
            }

            Debug.Print(sVbZipInf + s0);
            msOutput = msOutput + s0;

            sVbZipInf = "";

            System.Windows.Forms.Application.DoEvents();
            return(0);
        }
예제 #2
0
        // Callback for zip32.dll
        public static int DLLPrnt(ref CBChar fname, int x)
        {
            string s0 = null;
            int xx = 0;
            string sVbZipInf = null;

            // always put this in callback routines!
             // ERROR: Not supported in C#: OnErrorStatement

            s0 = "";
            for (xx = 0; xx <= x; xx++) {
                if (fname.ch[xx] == 0)
                    xx = 99999;
                else
                    s0 = s0 + Strings.Chr(fname.ch[xx]);
            }

            Debug.Print(sVbZipInf + s0);
            msOutput = msOutput + s0;

            sVbZipInf = "";

            System.Windows.Forms.Application.DoEvents();
            return 0;
        }
예제 #3
0
// Callback for zip32.dll
        public static CBChar DllComm(ref CBChar s1)
        {
            // always put this in callback routines!
            // ERROR: Not supported in C#: OnErrorStatement

            // not supported always return \0
            s1.ch[0] = Convert.ToByte(Constants.vbNullString);
            //UPGRADE_WARNING: Couldn't resolve default property of object DllComm. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            return(s1);
        }
예제 #4
0
        // Callback for zip32.dll
        public static CBChar DllComm(ref CBChar s1)
        {
            // always put this in callback routines!
             // ERROR: Not supported in C#: OnErrorStatement

            // not supported always return \0
            s1.ch[0] = Convert.ToByte(Constants.vbNullString);
            //UPGRADE_WARNING: Couldn't resolve default property of object DllComm. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            return s1;
        }
예제 #5
0
// Callback for Zip32.dll ?
        public static short DllServ(ref CBChar fname, int x)
        {
            string s0 = null;
            int    xx = 0;

            // ERROR: Not supported in C#: OnErrorStatement


            s0 = "";

            for (xx = 0; xx <= x - 1; xx++)
            {
                if (fname.ch[xx] == 0)
                {
                    break;                     // TODO: might not be correct. Was : Exit For
                }
                s0 = s0 + Strings.Chr(fname.ch[xx]);
            }

            return(0);
        }
예제 #6
0
        // Callback for Zip32.dll ?
        public static short DllServ(ref CBChar fname, int x)
        {
            string s0 = null;
            int xx = 0;

             // ERROR: Not supported in C#: OnErrorStatement

            s0 = "";

            for (xx = 0; xx <= x - 1; xx++) {
                if (fname.ch[xx] == 0)
                    break; // TODO: might not be correct. Was : Exit For
                s0 = s0 + Strings.Chr(fname.ch[xx]);
            }

            return 0;
        }