Cube_c.cpp 832 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //---------------------------------------------------------------------------
  2. #include <fmx.h>
  3. #ifdef _WIN32
  4. #include <tchar.h>
  5. #endif
  6. #pragma hdrstop
  7. #include <System.StartUpCopy.hpp>
  8. //---------------------------------------------------------------------------
  9. USEFORM("fcCube.cpp", FormCube);
  10. //---------------------------------------------------------------------------
  11. extern "C" int FMXmain()
  12. {
  13. try
  14. {
  15. Application->Initialize();
  16. Application->CreateForm(__classid(TFormCube), &FormCube);
  17. Application->Run();
  18. }
  19. catch (Exception &exception)
  20. {
  21. Application->ShowException(&exception);
  22. }
  23. catch (...)
  24. {
  25. try
  26. {
  27. throw Exception("");
  28. }
  29. catch (Exception &exception)
  30. {
  31. Application->ShowException(&exception);
  32. }
  33. }
  34. return 0;
  35. }
  36. //---------------------------------------------------------------------------