text: /****************************************************************************
   * ==> Weather demo --------------------------------------------------------*
   ****************************************************************************
   * Description : Weather effects (rain and snow) demo                       *
   * Developer   : Jean-Milost Reymond                                        *
   * Copyright   : 2017 - 2022, this file is part of the CompactStar Engine.  *
   *               You are free to copy or redistribute this file, modify it, *
   *               or use it for your own projects, commercial or not. This   *
   *               file is provided "as is", WITHOUT ANY WARRANTY OF ANY      *
   *               KIND. THE DEVELOPER IS NOT RESPONSIBLE FOR ANY DAMAGE OF   *
   *               ANY KIND, ANY LOSS OF DATA, OR ANY LOSS OF PRODUCTIVITY    *
   *               TIME THAT MAY RESULT FROM THE USAGE OF THIS SOURCE CODE,   *
   *               DIRECTLY OR NOT.                                           *
   ****************************************************************************/
  
  #include <vcl.h>
  #pragma hdrstop
  
  // vcl
  #include <tchar.h>
  
  //---------------------------------------------------------------------------
  USEFORM("Main.cpp", MainForm);
  //---------------------------------------------------------------------------
  int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
  {
      try
      {
          Application->Initialize();
          Application->MainFormOnTaskBar = true;
          Application->CreateForm(__classid(TMainForm), &MainForm);
          Application->Run();
      }
      catch (Exception &exception)
      {
          Application->ShowException(&exception);
      }
      catch (...)
      {
          try
          {
              throw Exception("");
          }
          catch (Exception &exception)
          {
              Application->ShowException(&exception);
          }
      }
  
      return 0;
  }
  //---------------------------------------------------------------------------
  