Thank you Robert, that was the problem. I guess it would be a good idea to
use a 32 bit type value instead.
Mark Lenz
(920) 832-3523
[EMAIL PROTECTED]
Robert McKenzie
<[EMAIL PROTECTED]> To: "Palm Developer
Forum"
Sent by:
<[EMAIL PROTECTED]>
bounce-palm-dev-forum-48969@news. cc:
palmos.com Subject: RE:
DmGetNextDatabaseByTypeCreator
04/19/2002 03:02 PM
Please respond to "Palm Developer
Forum"
My attention is drawn to that 's28' type value. You have specified 24 bits
of a 32 bit value. I wonder what your particular compiler puts into the
other 8 bits.
You might try using NULL (which will match all types) and seeing what
happens.
-bob mckenzie, palmsource pdx.
-----Original Message-----
From: Mark Lenz [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 12:55 PM
To: Palm Developer Forum
Subject: RE: DmGetNextDatabaseByTypeCreator
This is a snippet of the code. I'm not sure the problem is here. I think
it might be with the pdb files I created as my pdb browser didn't find them
either.
DmSearchStateType searchState;
Int16 count = 0;
UInt16 cardNo;
LocalID dbID;
Err err = DmGetNextDatabaseByTypeCreator(true, &searchState, 's28', 'PCZF',
false, &cardNo, &dbID);
while (err == errNone && dbID)
{
// Do stuff with database
err = DmGetNextDatabaseByTypeCreator(false, &searchState, 's28',
'PCZF', false, &cardNo, &dbID);
}
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/