home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / aplusplus-1.01-src.lha / GNU / src / amiga / APlusPlus-1.01 / libsource / APPMain.cxx next >
C/C++ Source or Header  |  1994-05-04  |  942b  |  36 lines

  1. /******************************************************************************
  2.  **
  3.  **    C++ Class Library for the Amiga© system software.
  4.  **
  5.  **    Copyright (C) 1994 by Armin Vogt  **  EMail: armin@uni-paderborn.de
  6.  **    All Rights Reserved.
  7.  **
  8.  **    $Source: apphome:APlusPlus/RCS/libsource/APPMain.cxx,v $
  9.  **    $Revision: 1.3 $
  10.  **    $Date: 1994/04/23 21:00:31 $
  11.  **    $Author: Armin_Vogt $
  12.  **
  13.  ******************************************************************************/
  14.  
  15.  
  16. #include <APlusPlus/intuition/IntuiRoot.h>
  17.  
  18.  
  19. volatile static char rcs_id[] = "$Id: APPMain.cxx,v 1.3 1994/04/23 21:00:31 Armin_Vogt Exp Armin_Vogt $";
  20.  
  21.  
  22. int main(int argc,char *argv[])
  23. {
  24.    if (IntuiRoot::APPinitialise(argc,argv))
  25.    {
  26.       APPmain();              // user main
  27.       IntuiRoot::APPexit();   // destroy all IntuiObjects
  28.       return 0;
  29.    }
  30.    else 
  31.    {
  32.       cerr << "FATAL ERROR: could not create IntuiRoot! Programm exits.\n";
  33.       return 1;
  34.    }
  35. }
  36.