Yes, I see your point, but I allready told you that I am working with a 
structured variable. So I the size is the problem then who can I point the 
exact size?

static void AppStop(void)
{
AppInfo prefs;
// the variable appInfo -> global!!     
// Write the saved preferences / saved-state information.  This data 
// will saved during a HotSync backup.
        prefs.Files=appInfo.Files;
        prefs.LastDate=appInfo.LastDate;
        prefs.autoText=appInfo.autoText;
        PrefSetAppPreferences (appFileCreator, appPrefID, appPrefVersionNum, 
&prefs, sizeof (prefs), true);
        // Close all the open forms.
        FrmCloseAllForms ();
}

So I have the structure:
typedef  struct{
UInt16 Files;
DateTimeType LastDate;
char* autoText;
}AppInfo;

And in this case I am using sizeof(prefs). What do U suggest that I use so that 
the size will be correct?
Regrds, Iulia
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to