CctvPtzTruenTvs.cpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include <tchar.h>
  5. #include <cxFormats.hpp>
  6. //---------------------------------------------------------------------------
  7. //---------------------------------------------------------------------------
  8. USEFORM("FrmCctvCtrlF.cpp", FrmCctvCtrl);
  9. //---------------------------------------------------------------------------
  10. WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
  11. {
  12. int nLoginRes;
  13. DateSeparator = '-';
  14. TimeSeparator = ':';
  15. ShortDateFormat ="yyyy-MM-dd";
  16. ShortTimeFormat = "hh:nn:ss";
  17. LongTimeFormat = "hh:nn:ss";
  18. cxFormatController()->BeginUpdate();
  19. cxFormatController()->UseDelphiDateTimeFormats = true;
  20. cxFormatController()->EndUpdate();
  21. cxFormatController()->GetFormats();
  22. cxFormatController()->NotifyListeners();
  23. try
  24. {
  25. ReportMemoryLeaksOnShutdown = true;
  26. Application->Initialize();
  27. Application->MainFormOnTaskBar = true;
  28. Application->Title = "CCTV Á¦¾î";
  29. Application->CreateForm(__classid(TFrmCctvCtrl), &FrmCctvCtrl);
  30. Application->Run();
  31. }
  32. catch (Exception &exception)
  33. {
  34. Application->ShowException(&exception);
  35. }
  36. catch (...)
  37. {
  38. try
  39. {
  40. throw Exception("");
  41. }
  42. catch (Exception &exception)
  43. {
  44. Application->ShowException(&exception);
  45. }
  46. }
  47. return 0;
  48. }
  49. //---------------------------------------------------------------------------