C> I was wondering, is there a way to get the records from a database that is
C> already opened?
C> I just want to read the records I do not want to manipulate them in any way.
C> At present I can find the database I am interested in, but when I do a
C> DmOpenDatabaseByTypeCreator I get the return error
C> 'dmErrOpenedByAnotherTask'. I then do the loop thing using
C> DmNextOpenDatabase and DmOpenDatabaseInfo but never see the database I am
C> interested in. My idea was to get the DmOpenRef to the db I was interested
C> in by my approach does not seem to be working.

C> Any ideas, is this even possible if I am getting the
C> 'dmErrOpenedByAnotherTask'?



may be DmGet1Resource?
it take resources from the last opened database.you can take 'tbin'
resource as record.
another way (but i'm not confidence)
1. DmFindDatabase(...)
2. MemLocalIDToGlobal or MemLocalIDToPtr
and to work with a database as MemPtr.


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

Reply via email to