Console.cpp 710 B

1234567891011121314151617181920212223242526272829303132
  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include <tchar.h>
  5. //---------------------------------------------------------------------------
  6. int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
  7. {
  8. try
  9. {
  10. Application->Initialize();
  11. Application->MainFormOnTaskBar = true;
  12. Application->Run();
  13. }
  14. catch (Exception &exception)
  15. {
  16. Application->ShowException(&exception);
  17. }
  18. catch (...)
  19. {
  20. try
  21. {
  22. throw Exception("");
  23. }
  24. catch (Exception &exception)
  25. {
  26. Application->ShowException(&exception);
  27. }
  28. }
  29. return 0;
  30. }
  31. //---------------------------------------------------------------------------