xforms-development
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] fl_set_form_callback problem


From: Jens Thoms Toerring
Subject: Re: [XForms] fl_set_form_callback problem
Date: Tue, 2 Nov 2010 16:49:59 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hi Frits.

On Tue, Nov 02, 2010 at 11:29:08AM +0100, vwf wrote:
> I have a problem with arguments.  XForms has a routine
> fl_set_object_callback that is defined like:
> 
> void fl_set_form_callback(FL_FORM *form,
>       void (*callback)(FL_OBJECT *, void *),
>       void *data);
> 
> In my old program, that is in the process of rewriting, I bound:
>       fl_set_form_callback(thisone, LogState, 0);
> 
> I cannot make the compiler stop warning when I try to bind the callback
> in my reworked program. Who knows the correct way?

It's a bit difficult to say why there are warnings when you
neither tell what the warning are nor show the types of the
arguments you pass to fl_set_form_callback(). Is 'thisone' a
FL_FORM pointer and 'LogState' the name of a void returning
function that has a FL_OBJECT and a void pointer as its only
arguments (and is defined or at least declared before)?

                            Regards, Jens
-- 
  \   Jens Thoms Toerring  ________      address@hidden
   \_______________________________      http://toerring.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]