//--------------------------------------------------------------------------- #include #pragma hdrstop //--------------------------------------------------------------------------- #include USEFORM("laskuriform.cpp", Form1); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); // Initialize the ORB and BOA CORBA::ORB_var orb = CORBA::ORB_init(__argc, __argv); CORBA::BOA_var boa = orb->BOA_init(__argc, __argv); Application->CreateForm(__classid(TForm1), &Form1); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } catch (...) { try { throw Exception(""); } catch (Exception &exception) { Application->ShowException(&exception); } } return 0; } //---------------------------------------------------------------------------