-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathvisualsyslog.cpp
48 lines (48 loc) · 1.76 KB
/
visualsyslog.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
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("sourcecommon\messageform.cpp", MessageForm);
USEFORM("source\main.cpp", MainForm);
USEFORM("source\setup.cpp", SetupForm);
USEFORM("source\aboutbox.cpp", AboutBoxForm);
USEFORM("source\messmatchframe.cpp", MessMatchFr); /* TFrame: File Type */
USEFORM("source\messstyleframe.cpp", MessStyleFr); /* TFrame: File Type */
USEFORM("source\formhl.cpp", HighlightForm);
USEFORM("source\AlarmForm.cpp", ShowAlarmForm);
USEFORM("source\messprocessframe.cpp", MessProcessFr); /* TFrame: File Type */
USEFORM("source\formprocess.cpp", ProcessForm);
USEFORM("source\fileframe.cpp", FileFr); /* TFrame: File Type */
USEFORM("source\matchform.cpp", FilterForm);
//---------------------------------------------------------------------------
extern bool bHideToTray;
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR ParamStr, int)
{
bHideToTray = SameText(ParamStr, "tray");
try
{
Application->Initialize();
SetApplicationMainFormOnTaskBar(Application, true);
Application->Title = "Visual Syslog Server";
Application->CreateForm(__classid(TMainForm), &MainForm);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------