Archipelago.cpp 798 B

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