-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject1.cpp
43 lines (42 loc) · 1.59 KB
/
Project1.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
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("Unit1.cpp", main);
USEFORM("Unit2.cpp", mainTUIT);
USEFORM("Unit3.cpp", maincodeforces);
USEFORM("Unit4.cpp", mainTimus);
USEFORM("Unit5.cpp", mainAboutus);
USEFORM("Unit7.cpp", GAMES);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
Application->CreateForm(__classid(Tmain), &main);
Application->CreateForm(__classid(TmainTUIT), &mainTUIT);
Application->CreateForm(__classid(Tmaincodeforces), &maincodeforces);
Application->CreateForm(__classid(TmainTimus), &mainTimus);
Application->CreateForm(__classid(TmainAboutus), &mainAboutus);
Application->CreateForm(__classid(TGAMES), &GAMES);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------