cast to a _pointer_ to a struct...
Tree * theTree = (Tree *)MemHandleLock( h );
Regards,
Randy Maxwell
-----Original Message-----
From: Nicholas Breau [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 10:16 AM
To: Palm Developer Forum
Subject: Why doesn't this cast work ?
Can somebody tell me why this cast isn't working, or how I could solve it ?
Nick.
VoidHand h = DmQueryRecord(gTreeDB, index);
Tree theTree = (Tree)MemHandleLock(h); <----
where tree is a struct.
--
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