CameraController.cpp 970 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #include <sysutils.hpp>
  4. #pragma hdrstop
  5. #include <tchar.h>
  6. //---------------------------------------------------------------------------
  7. USEFORM("Unit1.cpp", Form1);
  8. //---------------------------------------------------------------------------
  9. int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
  10. {
  11. try
  12. {
  13. System::Sysutils::FormatSettings.DecimalSeparator = (wchar_t)".";
  14. Application->Initialize();
  15. Application->MainFormOnTaskBar = true;
  16. Application->CreateForm(__classid(TForm1), &Form1);
  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. //---------------------------------------------------------------------------