On Fri, Nov 16, 2001 at 08:14:02PM -0500, Mike Montalvo wrote:
> Handle hErrorStringsRsrc;
> Handle hErrorStringsRsrcArray;
> Handle pErrorStringRsrcArray;

One of these things is not like the other ones...

> pErrorStringRsrcArray = (char**)MemHandleLock(hErrorStringsRsrcArray);

MemHandleLock returns a pointer, so why are you assigning it to something
that's declared as a handle?

> Trying to compile the same code in the 4.0 SDK gives me all kinds of errors:
> Seems I no longer need the (char**) typecasts,

Right, that's because 3.5+ SDKs fixed the unfortunate (and meaningless!)
distinction between Handles (char **) and VoidHands (void **).

> so I take them out...exepct
> for the MemHandleLock. If I take out the typecast, it gives me a "Illegal
> implicit conversion void* to _opaque*.  What the heck is an _opaque*?

An _opaque is an implementation detail in the SDK that helps detect
mixups between pointers and handles.  Me, I would have given it a more
informative name.  :-)

    John  "...and now my song is done"

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