Re: Timer start registration breaks the gtk_main()
- From: Lex Trotman <elextr gmail com>
- To: ikorot earthlink net
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Timer start registration breaks the gtk_main()
- Date: Sun, 27 Mar 2011 14:41:37 +1100
>>ReadData() is not a good old C function, but a C++ method, carrying
>>around a pointer to the CFrame instance. You should make ReadData() static
>>or use more advanced tecniques, such as libsigc++ [1].
>
> So all I need is to do:
>
> class CFrame
> {
> static void ReadData();
> }
>
> ?
>
> Thank you.
>>
Do you understand what static member function means?
It is not automagically passed a pointer to an instance of the object
(no "this") so it will only work if the function does not access any
instance members.
If you are writing in C++ why don't you use gtkmm, the C++ binding
which has the ability to call bound member functions?
Cheers
Lex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]