In article <85620@palm-dev-forum>, [EMAIL PROTECTED] says...
>
> Last month post by Ben Combee is included below:
>
> Still my question is how can I atleast use C++ minus item 1 & 2 with the
> code generated by the CW 8 Shared Lib Wizard? Or do I need to take some
> other path?
You can't really include the standard new/delete functions from our
runtime, as they use exceptions.
The easiest way to do this is just to put in your private header:
inline void * operator new(UInt16 size)
{
return MemPtrNew(size);
}
inline void operator delete(void *ptr)
{
MemPtrFree(ptr);
}
This will provide inline versions of new/delete that should work for
your application and that won't invoke any global variables.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/