>
> If have written a working example (VS 2005 Express)

I tried it using fltk 1.1.x, and assume the answer is the
same in fltk 2.0

Casts are evil things.  If you hadn't used them, the
compiler would have told you what was wrong.  Corrected
bits are below.

Cheers,
Stan


        inline void refresh_callback_i() {
                        RefreshPlayerList();
                        fltk::add_timeout(1.0,refresh_callback,this);
        }

        static void refresh_callback(void* v) {
                ((ObserverWindow*)v)->refresh_callback_i();
        }

        inline void start_callback_i() {
                RefreshPlayerList();
                fltk::add_timeout(1.0,refresh_callback,this);
        }

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

Reply via email to