Example #1
0
        public static void Main()
        {
            ReportBackHere simpleCallback = new ReportBackHere(ManagedCallBackApp.Report);
            VerifyAndReportBack(simpleCallback);

            SendTHEPOINTHere theCallBack = new SendTHEPOINTHere(ManagedCallBackApp.GiveMeThePoint);
            THEPOINT pt = new THEPOINT();
            pt.x = 10;
            pt.y = 10;
            Console.WriteLine("Point is:");
            Console.WriteLine("X = {0}\nY = {1}", pt.x, pt.y);
            ChangePOINTAndReportBack(theCallBack, pt);
        }
Example #2
0
        public static void Main()
        {
            ReportBackHere simpleCallback = new ReportBackHere(ManagedCallBackApp.Report);

            VerifyAndReportBack(simpleCallback);

            SendTHEPOINTHere theCallBack = new SendTHEPOINTHere(ManagedCallBackApp.GiveMeThePoint);
            THEPOINT         pt          = new THEPOINT();

            pt.x = 10;
            pt.y = 10;
            Console.WriteLine("Point is:");
            Console.WriteLine("X = {0}\nY = {1}", pt.x, pt.y);
            ChangePOINTAndReportBack(theCallBack, pt);
        }
Example #3
0
 public static extern void ChangePOINTAndReportBack(SendTHEPOINTHere x, THEPOINT pt);
Example #4
0
 public static extern void ChangePOINTAndReportBack(SendTHEPOINTHere x, THEPOINT pt);