-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPitchDetector.cpp
53 lines (50 loc) · 1.62 KB
/
PitchDetector.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
#if !defined( DONT_USE_SCALE_BITMAP )
# include "GdiPlusUtils.h"
#endif
//---------------------------------------------------------------------------
USEFORM("FrameLevelMeter.cpp", frmeLevelMeter); /* TFrame: File Type */
USEFORM("FormTestInput.cpp", frmTestInput);
USEFORM("FormMain.cpp", frmMain);
USEFORM("DataModTCP.cpp", dmTCP); /* TDataModule: File Type */
USEFORM("FrameReLog.cpp", frmeReLog); /* TFrame: File Type */
USEFORM("FormSettings.cpp", frmSettings);
//---------------------------------------------------------------------------
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
#if !defined( DONT_USE_SCALE_BITMAP )
GdiplusUtils::GdiPlusSessionManager gdiplusmngr_;
#endif
try
{
Application->Initialize();
Application->MainFormOnTaskBar = true;
Application->Title = "Server Pitch Detector";
Application->CreateForm(__classid(TfrmMain), &frmMain);
Application->CreateForm(__classid(TdmTCP), &dmTCP);
Application->Run();
while ( auto const Cnt = Screen->FormCount ) {
delete Screen->Forms[Cnt - 1];
}
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------