No. The trouble is that for any member function, there is an implicit first
parameter which corresponds to the this keyword inside the member function,
so any member function that you create can't be passed to
FrmSetEventHandler. You can pass a static member function though. If your
using C++, I suggest using the Palm Application Framework. It provides a C++
compatible event dispatcher.

Cheers,
James.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kapil
Konde
Sent: Monday, 28 May 2001 13:31
To: Palm Developer Forum
Subject: Event handler


Hi All,
        Can I have a form's event handler as a function of my c++ class. I tried
putting it my app class and associating it to the form by
FrmSetEventHandler() function with same signature. But it does not compile.
If anybody has tried it out then please tell me what other things do I need
to make it compile and run for me.

        Any suggestions will beb helpful.Thanks in advance.

Kapilk.


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


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