I am having problems getting this function to work.

What I have is very simple.

struct {
    Word var;
    Boolean flag;
} Prefs;

Word PrefsSize;

In my StartApplication() function, I execute:

PrefGetAppPreferences(CREATORID, 0, &Prefs, &PrefsSize, 0);

Then I have a form that can change the values of elements of Prefs.  This works as it 
is 
intended in the application.  So, I know my form-to-Prefs communication is fine.

Then, from my StopApplication() function, I execute:

PrefSetAppPreferences(CREATORID, 0, 3, &Prefs, sizeof(Prefs), 0);

But, the Prefs structure is not saved.  What am I missing here?  This all seems pretty 
simple but it just does not work.

Thanks
--
-----------------------------------------------------------------
Discussion Group:        http://www.halcyon.com/ipscone/wwwboard/

Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------

Reply via email to