What you did is basically legit.

You may want to read about overriding operators new&delete, and "placement
new" in Soustroup's C++ Programming Language and the C++ FAQ, for starters.

Creating objects the first way (eg. simple MemHandleNew()) won't work with
objects that have virtual functions.  For that you'd need to use the
MemMove() approach you described to set up your vptr.


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

Reply via email to