home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / macintosh-c / macc-carbon-demos-nonbinhex.sit / macc-carbon-demos-nonbinhex / chap01-demo / SysMemRes.c.rsrc / TEXT_8715.txt < prev   
Text File  |  2001-03-31  |  1KB  |  26 lines

  1. // *******************************************************************************************
  2. // SysMemRes.c                                                                          CARBON
  3. // *******************************************************************************************
  4. //
  5. // This program:
  6. //
  7. // ‚Ä¢    Loads a window template ('WIND') resource and creates a window.
  8. //
  9. // ‚Ä¢    Allocates a relocatable block in the application's heap, gets its size in bytes, draws
  10. //        the size in the window, and then disposes of the block.
  11. //        
  12. // ‚Ä¢    Loads a purgeable 'PICT' resource and a non-purgeable 'STR ' resource and draws them in
  13. //        the window.
  14. //
  15. // ‚Ä¢    Checks if any error codes were generated as a result of calls to Memory Manager and
  16. //        Resource Manager functions.
  17. //
  18. // ‚Ä¢    Terminates when the mouse button is clicked.
  19. //
  20. // The program utilises the following resources:
  21. //
  22. // ‚Ä¢    A 'carb' resource.  (All Carbon applications must have a 'carb' resource.)
  23. //
  24. // ‚Ä¢    A 'WIND' resource (purgeable).
  25. //
  26. // ‚Ä¢    A 'PICT' resource (