<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I am tryig to assign a callback to a slider. It
works as below if I write direcly to the main function without any class
declaration.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Fl_Value_Slider* slider11;</FONT></DIV>
<DIV><FONT face=Arial size=2>slider11 = new Fl_Value_Slider(10,10, 10, 10,
"slider11:");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>void slider11_cb(Fl_Widget* in, void*){...;<FONT
face=Arial size=2>}</FONT></FONT></DIV>
<DIV><FONT face=Arial
size=2>slider11->callback(slider21_cb,NULL);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But then i start to write a class named
eubStudio.</DIV>
<DIV> </DIV>
<DIV>void eubStudio::slider11_cb(Fl_Widget* in, void*){}<BR></DIV>
<DIV>and I when I try to assign this function to the slider in a function of
this class I got the following error</DIV>
<DIV>slider11->callback(slider11_cb,NULL);</DIV>
<DIV> </DIV>
<DIV>error C2664: 'void Fl_Widget::callback(Fl_Callback (__cdecl *),void *)' :
cannot convert parameter 1 from 'void (Fl_Widget *,void *)' to 'Fl_Callback
(__cdecl *)'<BR> None of the functions
with this name in scope match the target type</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Any ideas?</DIV>
<DIV>Thanx</DIV></FONT></BODY></HTML>