//--------------------------------------------------------------------------- #include #pragma hdrstop #include //--------------------------------------------------------------------------- USEFORM("Settings.cpp", FormSettings); USEFORM("Main.cpp", FormMain); //--------------------------------------------------------------------------- extern "C" int FMXmain() { try { Application->Initialize(); Application->Title = "PDFium viewer"; Application->CreateForm(__classid(TFormMain), &FormMain); Application->CreateForm(__classid(TFormSettings), &FormSettings); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } catch (...) { try { throw Exception(""); } catch (Exception &exception) { Application->ShowException(&exception); } } return 0; } //---------------------------------------------------------------------------