Thanks John and Richard for the suggestions, the problem was in fact that I
had forgotten to set my Creator ID in the linker settings for CW (duh).  So
when the application was removed from the device, the preferences were
left behind.

Thanks,
Marty


----- Original Message -----
From: John R. Violette <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Friday, January 28, 2000 8:53 PM
Subject: Re: Question about application preferences


> Yes, your app has a creator ID as well. Use a program called FPSUtility4
to
> see creator ID of all apps and databases installed in your device. If
using
> GCC, your creator ID is set by your compilation script as follows:
>
> I use GCC with VFDIDE (www.vfdide.com) and this is from my compile.bat
file:
>
> echo "Step 5 Build PRC..."
> build-prc myapp2.prc "MyAppName" CrId *.grc *.bin
>
> In the above line the build-prc is part of prc-tools which is used to
build
> the .prc file after your C code is compiled. The myapp2.prc is the name of
> the prc file. This does not have to be the same as the app name on the
Palm.
> "MyAppName" is what would appear once loaded into the Palm. "CrId" is a
> fictitious creator ID. You must register creator ID's with Palm. When you
> delete a Palm app, all databases and preferences with the same creator ID
> are also deleted.
>
> If using CodeWarrior, I believe there is a section in the GUI where you
> define your creator ID and this would get passed on to the compiler. With
> VFDIDE, you can also define it, but it doesn't get passed automatically to
> the compiler. You have to put it in your compile.bat file.
>
> Hope this helps.
>
> Marty Rice <[EMAIL PROTECTED]> wrote in message
news:601@palm-dev-forum...
> >
> > I don't know what you mean by the creator Id of my application... I use
> the
> > same code
> > you attached to get and set my app's preferences, and I use the same
crid
> as
> > I use
> > for my application's database, but does the application itself have a
> crid?
> > I don't see
> > anywhere that it is set, am I missing a function that tells the OS what
> the
> > application's
> > Id is?
> >
> > Thanks,
> > Marty
> >
> > ----- Original Message -----
> > From: John R. Violette <[EMAIL PROTECTED]>
> > Newsgroups: palm-dev-forum
> > To: Palm Developer Forum <[EMAIL PROTECTED]>
> > Sent: Thursday, January 27, 2000 8:43 PM
> > Subject: Re: Question about application preferences
> >
> >
> > > Try the Preference Editor by Bodo Bellut to view/edit entries in saved
> and
> > > unsaved preferences DB. They do get deleted when you delete the app as
> > long
> > > as the creator id of the pref database matches the creator id of your
> > > application. I use the following code to see if a pref exists for my
> app,
> > > where appFileCreator is a #define for my creator ID and AppPrefID is a
> > > #define for the version of prefs. The version is not used yet.
> > > 'noPreferencefound ' is defined by the Palm API as the return code for
> no
> > > preferences existing for the requested creator ID.
> > >
> > >
> > >
> > > Marty Rice <[EMAIL PROTECTED]> wrote in message
> > news:504@palm-dev-forum...
> > > >
> > > > When are application preferences "deleted"?  I assumed that
> > > > if you delete the app from the device, the application preferences
> > > > are also deleted.  But after re-installing my application and then
> > > > calling PrefGetAppPreferences, they seem to be still there.  I
> > > > have tried this using POSE as well as an actual device (thinking
> > > > the HotSync would delete them).  Somebody please enlighten
> > > > me.
> > > >
> > > > TIA,
> > > > 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