On Mon, Oct 04, 1999 at 05:40:07PM +0200, Dan Hod wrote:
> > This works OK:
> >
> > error = DmGetNextDatabaseByTypeCreator(TRUE, &stateInfo, MyDataBaseType,
> >
> MyCreatorID, FALSE, &cardNo, &dbID);
> 
> well...
> 
> I do not have the database's type & creator, I only have got the cardNo &
> dbID.

A dbID is basically a pointer.  If the database has been moved (e.g. if
the OS has compacted memory), the dbID is no longer valid.  You should
store some way to uniquely identify the DB, such as type+creator or
name, if you want to maintain a reference to a DB over an extended
period of time.

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

Reply via email to