Hi Milind,

looking at the definition of Icallback in iup.h:

typedef int (*Icallback)(Ihandle*);

you can just call a callback you receive from iupGetCallback through myCallback(someHandle) In practice, however, other (similar) function types are also cast to Icallback. They mostly have a different number of parameters. For instance the callback of a canvas for the RESIZE_CB has the structure:

int function(Ihandle *ih, int width, int height);

Therefore it might be a bad idea to invoke a callback function in this way. You will need to consider what type of event this callback was installed for.

Regards
Mihail

On 7/11/2015 08:14, Milind Gupta wrote:
How can I call a function I receive from iupGetCallBack i.e. function of the type Icallback?


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to