Steve,
Possible solution:
Use 3.5 SDK and define any older functions as needed.
At runtime check OS version and call accordingly.
Example:
#define MyChrIsHardKey(c) ((((c) >= hardKeyMin) && ((c) <=
hardKeyMax)) || ((c) == calcChr))
Boolean MyGlueIsHardKey(
UInt16 os,
UInt16 md,
UInt16 ch)
{
if (os >= osVersion35)
return (Boolean)TxtCharIsHardKey(md, ch);
else
return (Boolean)MyChrIsHardKey(ch);
}
Regards,
Randy Maxwell
-----Original Message-----
From: Steve Achelis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 4:40 PM
To: Palm Developer Forum
Subject: CharIsHardKey and 3.x
I am upgrading from CW6 to CW7. As CW7 doesn't have the 3.1 headers, I am
modifying my source to support 3.5 headers, but it still must run on all 3.x
devices.
I'm having trouble with CharIsHardKey(). When I compile, I get a 'Function
has no prototype' error message. There doesn't seem to be a glue function
for this (I'm still cloudy about glue functions). As I understand it, I
can't call TxtCharIsHardKey() and still run on versions prior to 3.2.
What should I do?
Thanks,
Steve
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/