Home » U++ Library support » U++ Callbacks and Timers » manually creating callback
Re: manually creating callback [message #42013 is a reply to message #41865] |
Mon, 10 February 2014 20:24 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
It has to be allocated on heap
#include <Core/Core.h>
using namespace Upp;
CoWork cw;
struct delme : public CallbackAction{
virtual void Execute() {}
};
CONSOLE_APP_MAIN
{
cw.Do(Callback(new delme));
cw.Finish();
}
(not very U++-ish, but then you are not supposed to do this
[Updated on: Mon, 10 February 2014 20:24] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Mar 29 12:18:13 CET 2024
Total time taken to generate the page: 0.01335 seconds
|