> Rich,
>
> I think in your LoadAppPrefs method you'll need
> to pass the size of the prefs you want to load:
>
> Int16 ccPreferences::LoadAppPrefs()
> {
> UInt16 size = sizeof(csAppPrefs);
> return PrefGetAppPreferences('MYAP', 0, &AppPrefs,
> &size, true );
> }
Oliver,
Thanks for spotting that. I'm still having the same problem, though.
"size" is set 18 before the call to PrefGetAppPreferences, but is then set
to 2.
As a simple test I loaded my prefs immediately after setting them (before
exiting the app) and they loaded fine ("size" was set to 18 and my struct
looked good). *But* if I exit the app and then try to load my prefs upon
entering the app again, then I get the problem of "size" being set to 2 and
my struct not being set properly.
~Rich
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/