Marty,

you don't check the good variable.

You need to check s that contain the size of your preferences. The 
prefsSize variable contains the pref version or -1 if not found.

Ludovic

At 19:00 +0200 18/04/2000, Marty Rice wrote:

>Michael,
>I initially thought the same thing but this is more precisely what I'm
>doing:
>
>typedef struct { ... } v1_PreferenceType; // global, 142 bytes total
>typedef struct { ... } v2_PreferenceType; // global, 228 bytes total
>
>In AppStart()...
>
>Word prefsSize, s=0;
>
>prefsSize = PrefGetAppPreferences(CRID,APPPREFID,NULL,&s,true);
>
>StrIToA(str1,prefsSize);
>StrIToA(str2,sizeof(v1_PreferenceType));
>StrIToA(str3,sizeof(v2_PreferenceType));
>
>FrmCustomAlert(DebugAlert,str1,str2,str3); // shows a simple alert dialog
>
>The resulting display shows the three sizes to be 2, 142, and 228.
>
>Thanks for your suggestion,
>Marty
>

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

Reply via email to