On Wed, 5 Apr 2000, Nicholas Breau wrote:
> I'm writting my first palm database application, and I'm trying to populate
> a list with data from a database, when I try compiling the code I get the
> error message on the following line
>
> VoidHand h = DmQueryRecord(gChemicalDB, index);
> PackedChemical *packedChemical = MemHandleLock(h); <-- this line causes
> error
>
> "illegal implicit conversion from Void * to packedChemical *"
>
> I'm using an example in the Oreilly book, and it's pretty much the same
> code....
>
> Nick.
You need to typecast the return from MemHandleLock:
PackedChemical *packedChemical;
packedChemical = (PackedChemical *)MemHandleLock(h);
That oughtta do it.
--
Brian Mathis
Direct Edge
http://www.directedge.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html