home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Conic Sections 0.9.2 / Sources / ConicApp.cpp < prev    next >
Encoding:
Text File  |  1997-06-13  |  607 b   |  32 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All rights reserved
  3.  
  4. #include <Gestalt.h>
  5. #include <TextUtils.h>
  6. #include <Dialogs.h>
  7. #include "ConicApp.h"
  8. #include "MenuHandler.h"
  9.  
  10. BOOLEAN TConicApp::RunSelf()
  11. {
  12.     long response;
  13.     Str255 string;
  14.  
  15.     Gestalt( gestaltSystemVersion, &response );
  16.     if( response < 0x0700 ) {
  17.         GetIndString( string, 128, 1 );
  18.         ParamText( string, 0l, 0l, 0l );
  19.         Alert( 129, 0l );
  20.         return( 1 );
  21.     }
  22.  
  23.     Gestalt( gestaltDragMgrAttr, &response );
  24.     mConicHandler = new TConicHandler( response&1, 0l );
  25.     mConicHandler->Init();
  26.     return( true );
  27. }
  28.  
  29. void TConicApp::QuitSelf()
  30. {
  31.     delete mConicHandler;
  32. }