Trent,

Unless you really know what you're doing (in which case, you might be not asking
this question in the first place :-) ), you should probably shy away from trying
to put C++ objects into handles. There are often hidden assumptions in a C++
implementation that makes it rely on objects being in non-movable blocks.

Would you be able to get by with keeping your data in regular old handles and
then defining a collection of functions that operation on those handles? Or do
you need things like inheritance and overridden methods?

-- Keith






Trent Hill <[EMAIL PROTECTED]> on 04/10/2000 05:53:10 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  Trent Hill <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  C++ and Handles




Hi all,

I am developing using CW6 and C++ and would like to make use of movable
memory for my objects. From previous discussion, it seems that CW uses fixed
pointers when allocating objects, so I presume that MemPtrRecoverHandle
won't work.

So what options do I have? Placement new? MemMove? Has anyone overridden
operator new/delete in some funky manner?

Any advice would be appreciated.

______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


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