//--------------------------------------------------------------------------- #include #pragma hdrstop USERES("Sample1.res"); USEFORM("Sample1u.cpp", Sample1Form); USELIB("CBACCES.lib"); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); Application->CreateForm(__classid(TSample1Form), &Sample1Form); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } return 0; } //---------------------------------------------------------------------------