crydev Messages: 151 Registered: October 2012 Location: Netherlands
Experienced Member
Didier wrote on Mon, 15 April 2013 20:02
Hi crydev,
I think an example would help us understand the coding issue that gives you some problems
I`m sorry, I should give some code to make it more clear. I have a situation like this.
I have this parameter class to pass a templated parameter containing any data I need to my worker function.
class ParameterBase
{
// general data that applies for any templated type.
};
template <class T>
class WorkerParameters<T> : public ParameterBase
{
T data;
};
Say my UI initiates this function, which calls my callback function using the given template. In the ideal situation that is possible, making me able to send my templated data to the UI.
What I already tried is creating a new class deriving from the Callback using a template I can alter in that class. No luck though. It is not possible to attach a function properly to THISBACK in my UI.