ahh - I'll look at those frameworks.
thanks - bill

>
> At 17:25 2002-11-5 -0800, you wrote:
> >From: "Bill Andreozzi" <[EMAIL PROTECTED]>
> >
> > > Has anyone done this?
> > > (e.g. create a form class, then during the object construction, pass
the
> > > address of a member function MyFormEventHandler to the
FrmSetEventHandler
> > > function.)
> >
> >You won't even be able to compile it without a horrendous cast. In fact,
I'm
> >not even sure _that's_ possible. As Keith says, a function pointer and a
> >pointer to member function are two different things. In one
implementation
> >I've seen, the latter is actually a struct.
>
> Correct.  In general, most class libraries handle this by registering a
> static member function of their form class as the dialog event handler,
and
> having that function use the form pointer in the event to look up the
> correct form object in some sort of registry, to which they then dispatch
> the event by calling that object's handler method.
>
> If you are in the middle of writing your own C++ framework, I wonder if
> you've looked at the ones available -- there are several that have already
> done this work for you, including the free ZenPlus and Bear River Palm
> Application Framework (PAF), and the commercial Object Library for Palm OS
> (POL).
>
> --
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Palm OS programming help @ www.palmoswerks.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