On Thu, 28 Mar 2002, Ben Combee wrote:
> >   // code warrior puts 12 bytes of junk at the beginning of the segment
> >   #ifdef __GNUC__
> >     codePtr = (void *)MemHandleLock(memHandle);
> >   #else
> >     codePtr = (void *)MemHandleLock(memHandle) + 12;
> >   #endif
>
> It is only junk if you're not treating the bytes in a code segment like
> real executable code. :)  For the purposed of just casting the code
> segment pointer to a function pointer and calling, it works great!

  who says "memHandle" is actually a 'code' resource? :P it could be
  something else.. gcc wins in this situation ben, but, at least i do
  have a workaround..

// az
[EMAIL PROTECTED]
http://www.ardiri.com/


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

Reply via email to