[comp.sys.atari.st] What is AC_CLOSE?

craig@scol.UUCP (Craig R.P. Heath) (10/15/87)

[The line eater is a myth!]

I'm having trouble with a little desk accessory I'm writing with
Lattice C 3.04 on my 520STFM.  I've got a couple of GEM reference
books, but nowhere in them can I find details of the handling of
the AC_CLOSE event message.  I've tried (a) ignoring it, and (b)
treating it as if the user had hit the DA's window close button,
but neither of these seems to work, in that I get system hang-ups
on either entering or exiting applications (but not every time, to
further confuse the issue!).

Could some kind-hearted and infinitely wise guru enlighten me by
telling me what the proper response to an AC_CLOSE message is?

advTHANKSance,

 O__ ....	Craig R.P. Heath
/|   bang	Santa Cruz Operation Ltd.  +44 1 439 2911 x271
/ \		UUCP: {ENGLAND}!ukc!pyrltd!scol!craig

ws1i+@andrew.cmu.edu (William Manchester Shubert) (10/25/87)

   I ran into sort of the same problem as you.  It turns out that AC_CLOSE is
defined as two different numbers in two different places; as best as I
remember, you have to go into one of the ".h" files Atari supplied you and
change the #define line to what the GEM documentation says it is.  Or else
you have to go ignore the GEM docs and use the number supplied with the ".h"
file.  Once you get the value set uyp correctly, just do what it says in the
GEM docs.
   Oh yeah!  I just realized that since you have the Lattice C, you don't
have the Atary ".h" files...oops...as I remember, the correct value of
AC_CLOSE is either:
   30
   31
   40
 or
   41
(or POSSIBLY 0x30, 0x31, etc...but probably decimal).
   Sorry I couldn't be of more help.