Hi Joe,

I don't think your problem has to do with the cardNo parameter.  The 
DmGetNextDatabaseByTypeCreator() function does not require you to 
specify a value for the cardNo parameter (it searches all cards.) It
is an "output" parameter rather than one you need to input.

As you iterate through the databases, make sure that:

1. The first time you call DmGetNextDatabaseByTypeCreator, the 
   newSearch parameter is set to "true".

2. The second and subsequent times you call the function, set the
   newSearch parameter to "false", and pass same stateInfoP
   pointer each time.

3. Try setting the onlyLatestVers parameter to "false".

Hope that helps!

Regards,

-Ade

At 09:45 AM 4/24/99 -0700, you wrote:
>I've been out of Palm development for a while, and now I'm trying to get
>back into it... I searched the FAQ, and (surprisingly) didn't see this in
>here, so somebody please have pity on me and give me a clue.
>
>My Lemons game works just fine on the PalmPilot or Palm III, but on the
>IIIx and Palm V, it has a variety of troubles finding the boards which
>players have installed.  One user did extensive testing (on a IIIx) and
>found that it only finds the first file alphabetically.  Another user (on a
>Palm V) found that, though only one board was installed, Lemons did not see
>it until he edited it with the board editor (which I do not understand at
>all, since Lemons and LemonsEdit use the same code to locate and display
>boards).
>
>I'm building my board list with DmGetNextDatabaseByTypeCreator.  This
>function requires a cardNo parameter.  I remember that at the time I was
>writing this, there was no way to determine how many cards there might be
>(and we wouldn't want to call a Dm or Mem function with an invalid
>parameter, because instead of returning a polite error message as the docs
>suggest, it will crash the machine).  So I'm only checking card 0.  I
>suspect this is the problem; maybe newer Palms have more than one card?
>
>If so, then I'm back to my age-old question: how do I safely determine how
>many cards there are?  If somebody could give me snippets that do the same
>thing as DmGetNextDatabaseByTypeCreator, DmFindDatabase, and
>DmCreateDatabase but in a card-agnostic way (they *all* require card
>numbers, dangit, and I have no idea where I should get these), I will be
>eternally grateful (and throw in a free copy of Lemons if you want it as
>well!).  These snippets must work under OS2, BTW, since I want to continue
>supporting the PalmPilot and Palm III.
>
>Many thanks,
>-- Joe
>
>,------------------------------------------------------------------.
>|    Joseph J. Strout           Biocomputing -- The Salk Institute |
>|    [EMAIL PROTECTED]             http://www.strout.net              |
>`------------------------------------------------------------------'
>
>
>
>

Reply via email to