//--------------------------------------------------------------------------- #include #pragma hdrstop USERES("sword.res"); USEFORM("mainfrm.cpp", Form1); USEFORM("AboutBoxfrm.cpp", AboutBox); USEFORM("bookmarkfrm.cpp", Bookmarksfrm); USEFORM("newbmfilefrm.cpp", NewBMfrm); USEFORM("optionfrm.cpp", Optionsfrm); USEFORM("searchfrm.cpp", Form2); USEUNIT("biblecsmgr.cpp"); USEFORM("ModInstForm.cpp", ModInstFrm); USEFORM("vrslstfrm.cpp", VerseListFrm); USEFORM("editentryfrm.cpp", EditEntry); USEFORM("versesel.cpp", VerseSelFrm); USELIB("swordlib.lib"); USEFORM("RangeMaintFrm.cpp", RangeMaintForm); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); Application->Title = "The SWORD Project"; Application->CreateForm(__classid(TForm1), &Form1); Application->CreateForm(__classid(TAboutBox), &AboutBox); Application->CreateForm(__classid(TBookmarksfrm), &Bookmarksfrm); Application->CreateForm(__classid(TNewBMfrm), &NewBMfrm); Application->CreateForm(__classid(TOptionsfrm), &Optionsfrm); Application->CreateForm(__classid(TForm2), &Form2); Application->CreateForm(__classid(TModInstFrm), &ModInstFrm); Application->CreateForm(__classid(TVerseListFrm), &VerseListFrm); Application->CreateForm(__classid(TEditEntry), &EditEntry); Application->CreateForm(__classid(TVerseSelFrm), &VerseSelFrm); Application->CreateForm(__classid(TRangeMaintForm), &RangeMaintForm); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } return 0; } //---------------------------------------------------------------------------