Esempio n. 1
0
        internal static void ExampleAutoSetup()
        {
            FuncCallBack2 oFunc2 = FunctionCallback2;
            StpntCallBack oStpnt = StpntCallback;
            BcndCallBack  oBcnd  = BoundaryCallback;

            AutoInterface.SetAutoNumParameters(36);
            AutoInterface.setCallbackFunc2(oFunc2);
            AutoInterface.setCallbackStpnt(oStpnt);
            AutoInterface.setCallbackBcnd(oBcnd);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            FuncCallBack2 oFunc2 = new FuncCallBack2(FunctionCallback2);
            StpntCallBack oStpnt = new StpntCallBack(StpntCallback);
            BcndCallBack  oBcnd  = new BcndCallBack(BoundaryCallback);


            //AutoInterface.SetAutoNumParameters(36);
            AutoInterface.setCallbackFunc2(oFunc2);
            AutoInterface.setCallbackStpnt(oStpnt);
            AutoInterface.setCallbackBcnd(oBcnd);
            //AutoInterface.setFort2File(global::AutoTorCSharp.Properties.Resources.fort, global::AutoTorCSharp.Properties.Resources.fort.Length);
            AutoInterface.CallAuto();

            int    nLength = 0;
            string sResult = AutoInterface.getFort7File(out nLength);

            Console.WriteLine(sResult);
            //Console.WriteLine("done!");
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            FuncCallBack2 oFunc2 = new FuncCallBack2(FunctionCallback2);
            StpntCallBack oStpnt = new StpntCallBack(StpntCallback);
            BcndCallBack oBcnd = new BcndCallBack(BoundaryCallback);

            //AutoInterface.SetAutoNumParameters(36);
            AutoInterface.setCallbackFunc2(oFunc2);
            AutoInterface.setCallbackStpnt(oStpnt);
            AutoInterface.setCallbackBcnd(oBcnd);
            //AutoInterface.setFort2File(global::AutoTorCSharp.Properties.Resources.fort, global::AutoTorCSharp.Properties.Resources.fort.Length);
            AutoInterface.CallAuto();

            int nLength = 0;
            string sResult = AutoInterface.getFort7File(out nLength);
            Console.WriteLine(sResult);
            //Console.WriteLine("done!");
        }
Esempio n. 4
0
 public static extern void setCallbackBcnd(BcndCallBack cb);
Esempio n. 5
0
 public static extern void setCallbackBcnd(BcndCallBack cb);