home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / CustomDialog Demo / Source / Main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-31  |  1.4 KB  |  63 lines  |  [TEXT/MMCC]

  1. /**********************************************************************
  2.  *
  3.  *                        CustomGetFile Dialog Demo
  4.  *
  5.  *    Main.c
  6.  *
  7.  *    Written in CodeWarrior Gold 5.5
  8.  *    August 31, 1995
  9.  *
  10.  *    Copyright © 1995 Carl B. Constantine
  11.  *    Some portions Copyright © 1995 MetroWerks, Inc.
  12.  *    Some portions Copyright © 1995 Apple Computer, Inc.
  13.  *
  14.  **********************************************************************/
  15.  
  16.  /*------------------------------------------------------------------
  17.   #
  18.   #                            File History
  19.   #
  20.   #        Date                Description of Change
  21.   #        ----                ---------------------
  22.   #        Aug 31/93            — Original creation of file
  23.   #
  24.   #
  25.   #
  26.   -------------------------------------------------------------------*/
  27.   
  28. #define _Main_Module_
  29.   
  30. /*============================ Include Files ============================*/
  31.  
  32. #include "AppConstants.h"
  33. #include "AppGlobals.h"
  34. #include "Main.h"
  35. #include "EventHandler.h"
  36. #include "Setup.h"
  37. #include "Custom.h"
  38.  
  39. /*======================== Procedures & Functions =======================*/
  40.  
  41.  
  42. /*-----------------------------------------------------------------------*/
  43.  
  44. void main()
  45. {
  46.     StandardFileReply    myReply;
  47.     
  48.     MaxApplZone();
  49.     Initialize();
  50.     
  51.     UnloadSeg( (Ptr)Initialize );    // We no longer need this segment.
  52.     if ( !Init_AE_Events() )
  53.         ExitToShell();
  54.     myReply = DoGetVolume();
  55.     
  56.     EventLoop();
  57.     
  58.     ZeroScrap();
  59.     TEToScrap();
  60.     
  61. }
  62.  
  63. /*============================= End of File ==============================*/