"Keith Rollin" <[EMAIL PROTECTED]> wrote in message news:81605@palm-dev-forum... > > At 9:56 AM +0530 3/27/02, Rohit <[EMAIL PROTECTED]> wrote: > >Could you suggest me a free Linked List that I can use in my Palm > >Application. I am using Code Warrior as the IDE to develop the > >application. > > You work at a place called "House of Code", but don't have any linked > list code? Are the cupboards bare? :-)
Ha! I suspect that this request is more to do with code that is optimised for the Palm OS environment. Linked lists are pretty EASY to do in C or C++ if you're happy to use fixed pointers, and you could use just about any sample code you find on the web. The only problem is that if you've got a list that is fairly long-lived, and you're not accessing all the elements frequently, it's a bit wasteful to have all those locked memory handles. Personally, I haven't been playing with linked lists, but for an application I've been writing, I have been experimenting with C++ classes that emulate list functionality using Palm OS databases as the underlying storage mechanism. The Dm... functions can do most things that lists do, and you can automate the MemHandleLock and MemHandleUnlock calls quite nicely in C++. I haven't done any performance testing, but it seems sufficient for my needs, and I don't suppose it would be very slow. As an added bonus you get persistence for free if you need it. Regards to all, Igor Siemienowicz -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
