Thx Ben, I'll look at that - sounds like a possible winner. The only thing I don't like about it is that I then need an installer to keep the loose files together.
If I can't get on with your suggestion for whatever reason, is there a way that once I have a humungous chunk of binary (all the data files stuck together) and a header for it, that I can make CW munge it into the exe at a place where I can get a start address back from easily ? Assuming a yes, are their any gotchas in just returning a pointer to where the data is relative to the start, or do I have to allocate some fresh ram and copy it to a more local area ? Thanks again..., and nice response time - much appreciated :) Paul Johnson Applewood House Development www.applewoodhouse.com ----- Original Message ----- From: "Ben Combee" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 12:16 AM Subject: Re: Files > At 00:10 2002-12-3 +0000, you wrote: > >Question is, how do I load this into my program ? resource ? library file ? > >etc, and then how do I reference it later when I come to write my 'fake' > >fileopen()/close() routines. I can't believe this is the first time someone > >wanted to do this - is there a definitive work ? > > > >I'm a programmer of sensible talent so complex answers are ok, but please > >bear in mind that I'm a bit of a newbie when it comes to both PalmOS AND > >CodeWarrior. > > Look at the File Stream APIs. They let you deal with specially formatted > databases as if they were files. The tool "par" can be used to make file > stream PDB files that can then be sync'd to the handheld. File stream DBs > are used in the OS to handle things like serialization for beaming, and > normally are just temporary DBs, but they can also be long lived. > > You won't have a hierarchical file system with these -- the DB name space > is flat -- but you can get around this by clever naming conventions. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.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/