Great, thanks, worked like a charm.  I'll master this C++ PALM programming
yet....


Nicholas Breau wrote in message <8176@palm-dev-forum>...
>
>You mean this ?
>  Tree theTree = (Tree *)MemHandleLock(h);
>
>I tried but it says can't convert Tree* to Tree....
>
>Nick.
>
>Hari Warrier wrote in message <8174@palm-dev-forum>...
>>
>>How could you cast a pointer to a struct? Try (Tree *);
>>
>>On Thu, Apr 13, 2000 at 02:16:25PM -0300, Nicholas Breau wrote:
>>> 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

Reply via email to