In the documentation it states that
Int16 PrefGetAppPreferences (UInt32 creator, UInt16 id, void *prefs, UInt16 *prefsSize, Boolean saved) , while in the debugger it states that... 'PrefGetAppPreferences(unsigned long, unsigned short, void *, unsigned short *, unsigned char)'
the main difference being the final variable changing from Boolean to an unsigned char. I set the value to false and received that strange error message. The call follows... any advice?
PrefGetAppPreferences('mine', UInt16(1), &pDateSet, sizeof(pDateSet), false);
In PalmTypes.h, there's a line that reads
typedef unsigned char Boolean;
Hope that solves your confusion.
You should be able to use "true" and "false"... they are C++ keywords, but they are also defined in the Palm OS SDK header PalmTypes.h.
-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
