コード例 #1
0
 public TXmlConnector()
 {
     this.myDelegate   = new TXmlConnector.CallBack(this.MyCallBack);
     this.myDelegateEx = new TXmlConnector.CallBackEx(this.MyCallBackEx);
     if (Environment.Is64BitProcess)
     {
         if (!TXmlConnector.SetCallback64(this.myDelegate))
         {
             throw new Exception("Could not establish a callback function");
         }
         if (!TXmlConnector.SetCallbackEx64(this.myDelegateEx, IntPtr.Zero))
         {
             throw new Exception("Could not establish a callback function");
         }
     }
     else
     {
         if (!TXmlConnector.SetCallback(this.myDelegate))
         {
             throw new Exception("Could not establish a callback function");
         }
         if (!TXmlConnector.SetCallbackEx(this.myDelegateEx, IntPtr.Zero))
         {
             throw new Exception("Could not establish a callback function");
         }
     }
     TXmlConnector.instance = this;
 }
コード例 #2
0
ファイル: TXmlConnector.cs プロジェクト: smther/FreeOQ
 public TXmlConnector()
 {
   this.myDelegate = new TXmlConnector.CallBack(this.MyCallBack);
   this.myDelegateEx = new TXmlConnector.CallBackEx(this.MyCallBackEx);
   if (Environment.Is64BitProcess)
   {
     if (!TXmlConnector.SetCallback64(this.myDelegate))
       throw new Exception("Could not establish a callback function");
     if (!TXmlConnector.SetCallbackEx64(this.myDelegateEx, IntPtr.Zero))
       throw new Exception("Could not establish a callback function");
   }
   else
   {
     if (!TXmlConnector.SetCallback(this.myDelegate))
       throw new Exception("Could not establish a callback function");
     if (!TXmlConnector.SetCallbackEx(this.myDelegateEx, IntPtr.Zero))
       throw new Exception("Could not establish a callback function");
   }
   TXmlConnector.instance = this;
 }
コード例 #3
0
 private static bool SetCallback64(TXmlConnector.CallBack pCallback);