Exemplo n.º 1
0
 static void Main(string[] argv)
 {
     mulclient ctx = new mulclient();
       try {
     ctx.ConfigSetName("MyMul");
     ctx.LinkCreate(argv);
     ctx.SendSTART();
     ctx.SendD(3.67);
     ctx.SendD(22.3);
     ctx.SendEND_AND_WAIT("MMUL", 5);
     Console.WriteLine(ctx.ReadD());
       } catch (Exception ex) {
     ctx.ErrorSet (ex);
       }
       ctx.Exit();
 }
Exemplo n.º 2
0
        static void Main(string[] argv)
        {
            mulclient ctx = new mulclient();

            try {
                ctx.ConfigSetName("MyMul");
                ctx.LinkCreate(argv);
                ctx.SendSTART();
                ctx.SendD(3.67);
                ctx.SendD(22.3);
                ctx.SendEND_AND_WAIT("MMUL", 5);
                Console.WriteLine(ctx.ReadD());
            } catch (Exception ex) {
                ctx.ErrorSet(ex);
            }
            ctx.Exit();
        }