home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Snippets / IconShow / EasyShow++ ƒ / ReadMeES.note next >
Encoding:
Text File  |  1994-03-15  |  2.5 KB  |  67 lines  |  [TEXT/KAHL]

  1.     Copyright © General Consulting & Research Inc. 1993-1994 All rights reserved.
  2.       Author:     Peter H. Teeson 
  3.     CIS:        72647,3674
  4.     AppleLink:    CDA0197
  5.      Date:        1 June 1993 
  6.       Path:IconShow:EasyShow++:ReadMeES.note
  7.      
  8.       • The files in the project:
  9.       
  10.           (0) The documentation in the ReadMeES and ReadMeIS.notes
  11.           (1) EasyShow++.cp is the main routine
  12.           (2) ES++.rsrc is a resource file with the various icon families
  13.               used to display the animated frames (ID's 1000, 1010, 1020) or
  14.               the 'Not loaded' icon (1030) if the mouse button or shift key
  15.               is held down.
  16.               
  17.               By having this file in the project you can double click on it and
  18.               launch ResEdit from within the project, make your changes, and when
  19.               you quit ResEdit you end up back in your project.
  20.               
  21.               Don't forget to compile the ES++.rsrc so that a suitable
  22.               EasyShow++.π.rsrc file is created for you before you begin debugging
  23.               or building the INIT.
  24.           (3) IconShow++.cp is the routine called to display the icon
  25.           (4) MacTraps is for the toolbox calls
  26.           (5) RuntimeMath.o is from the Standard Libraries:C++ Sources:CPlusLib:
  27.           (6) SITable.cp is the implementation of the class library 
  28.           (7) SITable.h is the declaration of the class library
  29.           
  30.     • Developing this INIT 
  31.         
  32.     There are two distinct phases in developing this INIT namely: 
  33.         (0) developing and debugging it as an app and 
  34.         (1) building it as a code resource of type INIT
  35.     
  36.     There are other methods to debug but one way to do it is to establish
  37.     a flag in each file that will conditionally compile code depending on whether 
  38.     you are debugging as an app or building a code resource. 
  39.     
  40.     A Symantec specific way is to use the predefined macro __A4_GLOBALS__
  41.     which is defined to be 1 if the project is a code resource but otherwise
  42.     isn't defined at all. 
  43.         
  44.     Examine the EasyShow++.cp file for an example of how to do this.
  45.     
  46.     • Developing and Debugging as an app:
  47.         (0) Use the 'Project' menu to 'Set Project Type…' to Application
  48.         
  49.         You should now be able to step though all of the code.
  50.     
  51.     • Building a code resource of type INIT
  52.         (0) Use the 'Project' menu to 'Set Project Type…' to: 
  53.               Project type to Code Resource, 
  54.               File type to 'INIT', 
  55.               Creator to 'ES++',            // must match the Signature in your Bundle
  56.               Name to 'EasyShow++',         
  57.               Resource type to 'INIT', 
  58.               ID = 1, 
  59.               Attrs = 50.
  60.           
  61.           You should now be able to Build Code Resource… 
  62.           (only use SmartLink if you have version C++ 6.0.1 or higher.)
  63.           
  64.       Peter Teeson
  65.       
  66.           
  67.