//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("Unit1.cpp", MainForm);
USEFORM("Browse.cpp", BrowseForm);
USEFORM("Insert.cpp", InsertForm);
USEFORM("update.cpp", updateForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try    
        {
                 Application->Initialize();
                 Application->CreateForm(__classid(TMainForm), &MainForm);
                 Application->CreateForm(__classid(TBrowseForm), &BrowseForm);
                 Application->CreateForm(__classid(TInsertForm), &InsertForm);
                 Application->CreateForm(__classid(TupdateForm), &updateForm);
                 Application->Run();
        }
        catch (Exception &exception)  
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
//---------------------------------------------------------------------------
