On 05.12.2008, at 19:04, Zdravko Monov wrote:

> Hi again! I get more and more hooked in FLTK ;) You, guys were really
> supprotive so far. Now, I stumbled upon another issue...
> I noticed that virtual function call does not work when code is  
> executed
> inside a FLTK callback. Have a look at this example:

A few things:

Calling classes "base" and "upper" is somewhat dangerous because these  
words are used in the standard libraries and may lead to confusion.

But more importantly, you use multiple inheritance on you "upper"  
class. AFAIK a static_cast will not be sufficient to resolve the void  
pointer correctly. You could use a dynamic_cast instead (remember to  
enable RTTI). Personally, I try to avoid multiple inheritance... .

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to