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
Wrap
Text File
|
2001-03-31
|
1KB
|
26 lines
// *******************************************************************************************
// 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 (