> From: Dave Carrigan [mailto:[EMAIL PROTECTED]]
> As an aside, if you're using C++, it's way better to cast using
> theptr = static_cast<Char *>(MemHandleLock(handle))
Or if you really want to show off:
template <class T>
inline T * MemHandleLock( MemHandle h )
{
return static_cast<T *>( MemHandleLock( h ));
}
And then use it like this:
Foo * pFoo = MemHandleLock<Foo>( hFoo );
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/