#Aztec/windows
Are you compiling with or without the +L switch in Aztec? (The +L
switch tells Aztec to use 32 bit ints which is what Lattice uses. Aztec
normally uses 16 bit ints.)
If you aren't using the +L switch you need to be sure you are casting
all the parameters passed to system routines (Intuition, Exec, etc.) to long
values. The system routines expect 32 bit ints not 16 bit ints. Also be sure
to include the functions.h file. It defines the correct return values for all
the system routines.
Once you stick in the casts you should have no problems at all. Or if
you just want to make sure you have the code typed in right try compiling with
the +L switch. (If you use the +L switch be _sure_ to link with the 32 bit
library files not the 16 bit ones.) The code produced with +L is a little
larger and slower but when learning that isn't a major concern.
Dan