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); }
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!"); }