On Tue, Aug 03, 1999 at 10:23:24AM -0500, [EMAIL PROTECTED] wrote:
> 
> I'd like to use DmGetNextDatabaseByTypeCreator to collect information about all
> "appl" databases on the Palm.  I have defined a structure to hold the card
> number, local id and name of the databases that are found during the search.
> Being new to Palm programming, I'm not sure the best way to allocate memory for
> the search using the fewest resizes, locks and unlocks.  Having no idea how big
> the result will be means I can't allocate a specific size array.  How do people
> do this?  Can someone suggest a design for this type of thing on the Palm?
> 

There is already a function to do what you want here:
SysCreateDataBaseList().  I don't know if it's the most efficient
possible way, but it's pretty good.  

-- 
Ben Darnell              [EMAIL PROTECTED]
http://www4.ncsu.edu/~bgdarnel/thoughtstream

Reply via email to