![]() |
|
#1
|
|||
|
|||
Trouble with Fl::add_timeoutI'm having trouble with Fl:add_timeout doing what I want to do.
CPP / C++ / C Code:
Whenever I put the Fl::add_timeout in the same file as main like the code above, it works just fine and the callback can do whatever I want. However, whenever I create a different class and try to put fl::add_timeout in the functions, I get errors saying the callback needs to be static. So I do this: CPP / C++ / C Code:
However, because callback is now static, I cannot call other functions within the class, which is want I want to do. Is there any way I can do this? Last edited by admin : 03-Mar-2008 at 05:06.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
||||
|
||||
Re: Trouble with Fl::add_timeout__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
Recent GIDBlog
New Corolla Altis, 10th Generation - Part I by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble displaying table graph | zerrigan | CPP / C++ Forum | 0 | 10-Apr-2007 20:40 |
| Trouble with a linked list... | Mararia | CPP / C++ Forum | 1 | 22-Jan-2007 12:53 |
| feof() trouble | Lewk of Serthic | C Programming Language | 5 | 14-Sep-2005 23:43 |
| C programming trouble | Newworld | C Programming Language | 8 | 12-Sep-2004 23:06 |
| Having trouble trying to format C: | Nickster64 | Computer Software Forum - Windows | 2 | 27-Jul-2004 07:31 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The