Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
koldo is currently offline  koldo
Messages: 3355
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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [REQUEST]: Allow callback() template to work also with non-void and non-bool return types.
Next Topic: How to set a TimeCallback
Goto Forum:
  


Current Time: Fri Mar 29 15:28:56 CET 2024

Total time taken to generate the page: 0.01714 seconds