in you header:
typedef void MyFunctionCallback
(VarType MyVar);
typedef MyFunctionCallbackPtr * MyFunctionCallback
In your local code define the function to call:
void MyLocalFunctionThatWillBeCalledBack(VarType);
static void MyLocalFunctionThatWillBeCalledBack(VarType MyVar)
{
// Code
// Code
}
How to make the call:
(void) (PtrToMyLocalFunctionThatWillBeCalledBack)(MyVar);
You can replace the return type and the function arguments with whatever you
need.
Dave
If I've forgotten anything, let me know. The code example I tried to
distill this from is a little sensitive and I couldn't post it.
-----Original Message-----
From: Gaurav Palvia <[EMAIL PROTECTED]>
To: palm-dev-forum <[EMAIL PROTECTED]>
Date: Thursday, November 11, 1999 3:56 PM
Subject: how to declare a callback function
>i want to create a callback function.can somebody suggest me how to do
>that.in windows u use CALLBACK.so how to do it in CW5
>
>