Hrm, without looking at the code, it's difficult to say, but the docs say that DmNewResource creates a resource in a given database. The first arguement is a database pointer. Isn't this the pointer in which the resource is created?
In detail: MemHandle DmNewResource(DmOpenRef dbP,DmResType resType, DmResID resID, UInt32 size); Could it be (I'm guessing here) that your dbP is actually pointing at the preferences database? -Ken On Thu, 2003-01-23 at 17:44, Mike McCollister wrote: > Brian, > > > > When I create a new resource using DmNewResource, it creates it in the > > > unsaved preferences. Why does this happen? How can I get it to go to > > > the saved preferences section? > > > > This begs the question... why are you using DmNewResource to put stuff in > > the preferences database(s)? That's what the Preferences functions are > > for :-) > > Actuall, I'm wanting to create a database that will be read by the system. > Because of this I can't have the version as the first two bytes. Actually, I > was able to get it to work usign the Preferences functions and kludging the > version information as part of the data in the resource. > > I still don't know why the resource is in the unsaved section. > > Mike > > > > > -- > > ----------------------------------------------------------------------- > > Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ > > Software Developer // Gamer // Webmaster // System Administrator > > "Senate, n.: A body of elderly gentlemen charged with high duties and > > misdemeanors." -- Ambrose Bierce > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, please > > see http://www.palmos.com/dev/support/forums/ > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see >http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
