home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / hra.exe / swat.cpp < prev    next >
C/C++ Source or Header  |  1998-02-09  |  1KB  |  34 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <vcl.h>
  7. #pragma hdrstop
  8. //---------------------------------------------------------------------------
  9. USEFILE("readme.txt");
  10. USEFORM("swatmain.cpp", SwatForm);
  11. USEFORM("about.cpp", AboutBox);
  12. USEFORM("options.cpp", OptionsDlg);
  13. USERES("swat.res");
  14. //---------------------------------------------------------------------
  15. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  16. {
  17.     try
  18.     {
  19.     Application->Initialize();
  20.     Application->Title = "Swat!";
  21.     Application->CreateForm(__classid(TSwatForm), &SwatForm);
  22.     Application->CreateForm(__classid(TAboutBox), &AboutBox);
  23.     Application->CreateForm(__classid(TOptionsDlg), &OptionsDlg);
  24.     Application->Run();
  25.    }
  26.    catch (Exception &exception)
  27.    {
  28.       Application->ShowException(&exception);
  29.    }
  30.  
  31.    return 0;
  32. }
  33. //---------------------------------------------------------------------------
  34.