//--------------------------------------------------------------------------- #include #pragma hdrstop USEFORM("..\Common\DemoBasicMain.cpp", frmDemoBaisicMain); USEFORM("..\Common\AboutDemoForm.cpp", formAboutDemo); USEFORM("..\Common\DemoBasicDM.cpp", dmOrders); /* TDataModule: File Type */ USEFORM("EditorsInPlaceDemoMain.cpp", frmEditorsInPlace); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); SetApplicationMainFormOnTaskBar(Application, true); Application->CreateForm(__classid(TdmOrders), &dmOrders); Application->CreateForm(__classid(TfrmEditorsInPlace), &frmEditorsInPlace); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } catch (...) { try { throw Exception(""); } catch (Exception &exception) { Application->ShowException(&exception); } } return 0; } //---------------------------------------------------------------------------