//--------------------------------------------------------------------------- #include #pragma hdrstop USERES("demotest.res"); USEFORM("demo.cpp", Demotus); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); Application->CreateForm(__classid(TDemotus), &Demotus); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } return 0; } //---------------------------------------------------------------------------