I have some trouble with assigning a callback function-pointer to member function. I have a callback function-pointer like this:
void (*callback)(float arg);
And my class looks like this:
class EXAMPLE_CLASS
{
public:
/*
* Standard Constructor
*/
EXAMPLE_CLASS();
/*
* Standard Destructor
*/
virtual ~EXAMPLE_CLASS();
void test_callback(float arg);
};
I want now to assign this callback function-pointer to the member callback function, how can I achieve this?
Aucun commentaire:
Enregistrer un commentaire