-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBarcodeScanner.cpp
50 lines (49 loc) · 1.77 KB
/
BarcodeScanner.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
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
//---------------------------------------------------------------------------
USEFORM("param\UnitDlgGroupEdit.cpp", DlgGroupEdit);
USEFORM("param\UnitDlgScannerConfig.cpp", DlgScannerConfig);
USEFORM("param\UnitDlgBarcodeHeaderEdit.cpp", DlgBarcodeHeaderEdit);
USEFORM("param\UnitDlgCommEdit.cpp", DlgCommEdit);
USEFORM("param\UnitDlgScannerEdit.cpp", DlgScannerEdit);
USEFORM("UnitFormMain.cpp", FormMain);
USEFORM("UnitDataModuleMain.cpp", DataModuleMain); /* TDataModule: File Type */
USEFORM("base\UnitDialogBase.cpp", DialogBase);
USEFORM("base\UnitFormBase.cpp", FormBase);
USEFORM("base\UnitFormProgressbar.cpp", FormProgressbar);
//---------------------------------------------------------------------------
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
try
{
Application->Initialize();
Application->MainFormOnTaskBar = true;
Application->CreateForm(__classid(TDataModuleMain), &DataModuleMain);
Application->CreateForm(__classid(TFormMain), &FormMain);
Application->CreateForm(__classid(TDlgScannerConfig), &DlgScannerConfig);
Application->CreateForm(__classid(TDlgGroupEdit), &DlgGroupEdit);
Application->CreateForm(__classid(TDlgScannerEdit), &DlgScannerEdit);
Application->CreateForm(__classid(TDlgBarcodeHeaderEdit), &DlgBarcodeHeaderEdit);
Application->CreateForm(__classid(TDlgCommEdit), &DlgCommEdit);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------