Example #1
0
 public static void ParserCallback(IntPtr pCallerContext,
                                   UInt32 ulStatusCode,
                                   string lpDescription,
                                   NmCallbackMsgType ulType)
 {
     if (ulType == NmCallbackMsgType.Error)
     {
         Console.WriteLine("ERROR: " + lpDescription);
     }
     else
     {
         Console.WriteLine(lpDescription);
     }
 }
Example #2
0
 public static void ParserCallback(IntPtr pCallerContext,
     UInt32 ulStatusCode,
     string lpDescription,
     NmCallbackMsgType ulType)
 {
     if (ulType == NmCallbackMsgType.Error)
     {
         Console.WriteLine("ERROR: " + lpDescription);
     }
     else
     {
         Console.WriteLine(lpDescription);
     }
 }
 private static void ParserCallback(IntPtr pCallerContext, UInt32 ulStatusCode, String lpDescription, NmCallbackMsgType ulType)//the callback function
 {
     Console.WriteLine(lpDescription);
 }
Example #4
0
 public static void ParserCallback(IntPtr pCallerContext, uint ulStatusCode, string lpDescription, NmCallbackMsgType ulType)
 {
     if (ulType == NmCallbackMsgType.Error)
     {
         throw new Exception("Error from parser callback: " + lpDescription);
     }
 }