Gee, thanx!!
I wonder why does this work, and if I could have found it myself in the
documentation...?

-----Original Message-----
From: Eric VERGNAUD [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 12:14 PM
To: Palm Developer Forum
Subject: Re: enum problems


le 9/03/2000 10:24, Oz Shalbar � [EMAIL PROTECTED] a �crit�:

> Hello all.
> 
> Has anyone run into this problem?:
> When the options on "enums always int" (C/C++ Language panel) and "4-Bytes
> Ints" (68K processor panel) are "on" in the target settings, the program
> halts, because EvtGetEvent (...) doesn't get right the enum field
> "event.eType". Probably eType is designed to be 2 bytes, but when forced
to
> read 4 bytes (by the above settings), it gets extra 2 bytes.
> How can I solve this problem without changing back the settings?

you should use the following

#pragma enumsalwaysint off
#pragma fourbyteints off

#include <Pilot.h>
// and all other system headers

#pragma enumsalwaysint reset
#pragma fourbyteints reset

Eric


-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to