//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
#include <cxFormats.hpp>
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
USEFORM("Frame\FrameStreamingAcesF.cpp", FrameStreamingAces); /* TFrame: File Type */
USEFORM("MAIN\FrmCctvCtrlF.cpp", FrmCctvCtrl);
USEFORM("Frame\FrameFlexWatchF.cpp", FrameFlexWatch); /* TFrame: File Type */
USEFORM("Frame\FrameTruenHttpF.cpp", FrameTruenHttp); /* TFrame: File Type */
USEFORM("Frame\FrameTruenActiveXF.cpp", FrameTruenActiveX); /* TFrame: File Type */
USEFORM("Frame\FrameSamsungXnsActiveXF.cpp", FrameSamsungXnsActiveX); /* TFrame: File Type */
USEFORM("Frame\FrameHanwhaF.cpp", FrameHanwha); /* TFrame: File Type */
USEFORM("Frame\FrameSamsungF.cpp", FrameSamsung); /* TFrame: File Type */
//---------------------------------------------------------------------------
WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
    int nLoginRes;

    DateSeparator = '-';
    TimeSeparator = ':';
    ShortDateFormat ="yyyy-MM-dd";
    ShortTimeFormat = "hh:nn:ss";
    LongTimeFormat  = "hh:nn:ss";

    cxFormatController()->BeginUpdate();
    cxFormatController()->UseDelphiDateTimeFormats = true;
    cxFormatController()->EndUpdate();
    cxFormatController()->GetFormats();
    cxFormatController()->NotifyListeners();

    try
    {
        ReportMemoryLeaksOnShutdown = true;
        Application->Initialize();
        Application->MainFormOnTaskBar = true;
        Application->Title = "CCTV Á¦¾î";
         Application->CreateForm(__classid(TFrmCctvCtrl), &FrmCctvCtrl);
         Application->Run();
    }
    catch (Exception &exception)
    {
         Application->ShowException(&exception);
    }
    catch (...)
    {
         try
         {
             throw Exception("");
         }
         catch (Exception &exception)
         {
             Application->ShowException(&exception);
         }
    }

    return 0;
}
//---------------------------------------------------------------------------

