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 |
`------------------------------------------------------------------'