//--------------------------------------------------------------------------- #include #pragma hdrstop //--------------------------------------------------------------------------- USERES("ConvertGrid3MasterDetailDemo.res"); USEFORM("ConvertGrid3MasterDetailDemoMain.cpp", ConvertGrid3MasterDetailDemoMainForm); USEFORM("ConvertGrid3MasterDetailDemoData.cpp", ConvertGrid3MasterDetailDemoDataDM); /* TDataModule: File Type */ USEFORM("..\AboutDemoForm.cpp", formAboutDemo); USEFORM("ConvertGrid3MasterDetailDemoGrids.cpp", ConvertGrid3MasterDetailDemoGridsForm); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); Application->Title = "ExpressQuantumGrid ConvertGrid3MasterDetail Demo"; Application->CreateForm(__classid(TConvertGrid3MasterDetailDemoDataDM), &ConvertGrid3MasterDetailDemoDataDM); Application->CreateForm(__classid(TConvertGrid3MasterDetailDemoMainForm), &ConvertGrid3MasterDetailDemoMainForm); Application->CreateForm(__classid(TConvertGrid3MasterDetailDemoGridsForm), &ConvertGrid3MasterDetailDemoGridsForm); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } catch (...) { try { throw Exception(""); } catch (Exception &exception) { Application->ShowException(&exception); } } return 0; } //---------------------------------------------------------------------------