-
Notifications
You must be signed in to change notification settings - Fork 0
/
biblio.cpp
51 lines (50 loc) · 1.8 KB
/
biblio.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
//---------------------------------------------------------------------------
#include <vcl.h>
#include "splash.h"
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("bokform.cpp", BookForm);
USEFORM("dmform.cpp", DM); /* TDataModule: File Type */
USEFORM("mform.cpp", FirstForm);
USEFORM("otdform.cpp", OtdelForm);
USEFORM("Predmetform.cpp", PredForm);
USEFORM("treeform.cpp", MainForm);
USEFORM("flogin.cpp", Login);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
Application->Title = "Áèáëèîòåêà";
SplashForm = new TSplashForm(Application);
SplashForm->Show();
SplashForm->Update();
Application->CreateForm(__classid(TLogin), &Login);
Application->CreateForm(__classid(TFirstForm), &FirstForm);
Application->CreateForm(__classid(TBookForm), &BookForm);
Application->CreateForm(__classid(TDM), &DM);
Application->CreateForm(__classid(TOtdelForm), &OtdelForm);
Application->CreateForm(__classid(TPredForm), &PredForm);
Application->CreateForm(__classid(TMainForm), &MainForm);
//SplashForm->Free();
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------