FWIW, MemHandleLock returns a Void *.  Try casting your assignment to type
PackedChemical *, e.g.,

PackedChemical  *packedChemical = (PackedChemical *) MemHandleLock(h);

Regards,

Steve

-----Original Message-----
From: Nicholas Breau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 05, 2000 1:58 PM
To: Palm Developer Forum
Subject: simple error, need help


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.



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to