You don't use "short", "long", etc., because their size is compiler-dependent.
When you're writing to an API like the Palm OS which is fairly fixed, you want
to make double-dog sure that you're passing in values of the right length.
You don't use "char*", etc., because that's ASCII-dependent. With different
kinds of character encodings out there, you'd like something like "Char" so that
you can change just that when retargetting your application.
-- Keith
Dan Hewins <[EMAIL PROTECTED]> on 02/01/2000 04:02:20 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: Dan Hewins <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/HQ/3Com)
Subject: Palm OS 3.5 Types
Forgive me if this has been discussed before but I couldn't find it
in all of my emails.
What's the point of introducing these new types anyway? Why not just
use short, long, unsigned char, char*, etc? Is there a reason for
all of this?
Thanks,
Dan Hewins
Synergy Solutions, Inc.
--
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