home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- //Borland C++Builder
- //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
- //----------------------------------------------------------------------------
- //---------------------------------------------------------------------------
- #include <vcl\vcl.h>
- #pragma hdrstop
- #include <except.h> //for xmsg
- #include <cstring.h> //for xmsg.why().c_str()
- //---------------------------------------------------------------------------
- USERES("Qbfdemo.res");
- USEFORM("QBFForm.cpp", QueryForm);
- USEFORM("Rsltform.cpp", ResultForm);
- //---------------------------------------------------------------------------
- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
- {
- try{
- Application->Initialize();
- Application->CreateForm(__classid(TQueryForm), &QueryForm);
- Application->Run();
- }
- catch(Exception& e){
- ShowMessage(e.Message);
- }
- catch(xmsg& e){
- ShowMessage(e.why().c_str());
- }
- return 0;
- }
- //---------------------------------------------------------------------------
-