home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 15
/
af015.adf
/
Paul_Overaa
/
readmepo
< prev
next >
Wrap
Text File
|
1978-01-09
|
1KB
|
43 lines
A few notes on what you'll find in the program files...
The source code for the StartUp/CloseDown Resource Allocation and
Deallocation example is the file 'MAIN.C'. Normally I wouldn't place
the images/static-definitions stuff in the same file as the program code
(they'd be in a separate header file), but for example purposes it's just
easier to give you a single source file !
The compiled version (Lattice) is called MAIN and it'll run from either
the CLI or the WorkBench. As you'll see from the source code this program
needs access to the diskfont.library and to the 'bocklin' font.
If, when you run the program, you actually see a display then the
begin_block() routine has found everything it needs. If you find yourself
back at the CLI or WorkBench without seeing anything then the program has
come across a problem (no chip memory, no diskfont library, no font etc.),
given up, and shut itself down.
Don't forget... if you move the program to another disk you must make sure
that your boot-up disk contains the abovementioned font !
Amiga Format note:
The fonts directory on the cover disk contains the above mentioned Bocklin
font. So, copy the fonts directory on the coverdisk to your Workbench
bootdisk. Very sorry that Paul_Overaa's Main program will not work off the
coverdisk, but if it did it would defeat the object of the exercise, which
is to show how to write Good Amiga code which doesn't throw a wobbler when
it can't find a file!
Pat McDonald