On 06 Apr 2001 10:23:33 -0300, Renato R. Garcia wrote:
> Thanks for the help...
> Actually I´m using C++ and the examples that I must have seen should be in C
> and by the way, where I said that was the 3rd I meant the 4th line in the
> example, sorry and the casting is done at the MemHandleLock like you said,
> and not at the MemHandleNew ;) ...
> Thanks again...


As an aside, if you're using C++, it's way better to cast using 

  theptr = static_cast<Char *>(MemHandleLock(handle))

Rather than

  theptr = (Char*)MemHandleLock(handle)

The C++ casts are much more precise, and also easier to spot in your
code. Get in the habit of doing it that way now, and your life will be
made better down the road.

-- 
Dave Carrigan <[EMAIL PROTECTED]>
"UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS-PalmOS-XML"
Seattle, WA, USA
http://www.rudedog.org/




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to