Esempio n. 1
0
 static void Main(string[] args)
 {
     // TODO: Add code to start application here
         Client cl = new Client();
         if (cl.Start(args) != 0) return;
         cl.Run();
 }
Esempio n. 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     //
     // TODO: Add code to start application here
     //
      try
     {
         Client cl = new Client();
         cl.Start(args);
         Thread procMsgThread = new Thread(new ThreadStart(cl.ProcessConsole));
         procMsgThread.Start();
         cl.Run();
         procMsgThread.Join();
     }
     catch (Exception e)
     {
         int hRes = Marshal.GetHRForException(e);
         Console.WriteLine("Exception {0}", e.Message);
         if (hRes == -2147205116) // P2ERR_INI_FILE_NOT_FOUND
         {
             Console.WriteLine("Can't find one or both of ini file: P2ClientGate.ini, forts_scheme.ini");
         }
         return;
     }
 }