On Thu, Feb 21, 2002 at 02:16:02PM -0800, Danny Epstein wrote:
> It sounds like we should add a FrmGlueHideObject function that has
> permission to access the usable bit on old versions of Palm OS. For now, you
> can use your own glue code instead. You should be okay as far as
> compatibility, but you'll have to define one of the ALLOW_ACCESS macros to
> get your glue to compile.

Yes.  Palm(Source) are not privileged when it comes to "glue" code; other
people can write such things too.

> Either put your glue code in a separate
> compilation unit, or define the ALLOW_ACCESS macro just before your glue
> function and undefine it just after.

(Just in case anyone tries this and gets confused.)  Uh, no. :-)

The ALLOW_ACCESS_* macros have their effects on the SDK headers, not on
your source code itself.  So you'd need to define/undefine the macro
around your #include lines, not around the code for your particular
function.  Thus the macros pretty much affect an entire compilation
unit.

To continue checking your other code properly, you really do need to put
your "glue" code in a separate .c file.

    John

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