// ******************************************************************************************* // SysMemRes.c CARBON // ******************************************************************************************* // // This program: // // • Loads a window template ('WIND') resource and creates a window. // // • Allocates a relocatable block in the application's heap, gets its size in bytes, draws // the size in the window, and then disposes of the block. // // • Loads a purgeable 'PICT' resource and a non-purgeable 'STR ' resource and draws them in // the window. // // • Checks if any error codes were generated as a result of calls to Memory Manager and // Resource Manager functions. // // • Terminates when the mouse button is clicked. // // The program utilises the following resources: // // • A 'carb' resource. (All Carbon applications must have a 'carb' resource.) // // • A 'WIND' resource (purgeable). // // • A 'PICT' resource (