Home » U++ Library support » U++ Callbacks and Timers » How to properly set a timer
How to properly set a timer [message #49557] |
Thu, 01 March 2018 10:19  |
 |
koldo
Messages: 3437 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
This question is strangely derived from this post.
I wanted to ask you how to set properly a timer. Three options:
1. Inside a class derived from Ctrl
SetTimeCallback(time, THISBACK(callbackFunction));
2. In a GUI program, in a class not derived from Ctrl
¿?¿?¿?
3. In a console program
¿?¿?¿?
For the option 2, I have used historically ::SetTimeCallback(time, THISBACK(callbackFunction));
However, for unknown reasons, it may sometimes crash the program.
Best regards
Iñaki
|
|
|
Goto Forum:
Current Time: Mon Jun 09 02:11:32 CEST 2025
Total time taken to generate the page: 0.05000 seconds
|