--- Tony Johnson <[EMAIL PROTECTED]> wrote:
> 
> But I can't for the life of me work out how to read this
> information...the idea is I'm iterating through the databases 
> that are created on the device and displaying them in a list. 
> The list is supposed to read the szPackName variable from the 
> AppInfo block of each database, but I just can't work out
> how to get this structure back.....
> 

Use:
  - DmFindDatabase() to get the localID of the database
  - DmDatabaseInfo() to get the localID of the application info block
  - MemLocalIDToLockedPtr() to get a pointer to the data

Once you have a pointer, p, to a record of type LevelPackHeader, use it
like any other pointer to a structure.  e.g.,

  // copy the name
  StrCopy(name, p->szPackName);


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to