Original Post
Hope the topic is what I am looking for...
I just wonder if I can define a function that takes a function as a parameter -
1. can it be done?
2. how can I "hold" this given function in my class?
3. can this function be from an other class?
example:
I think of a class
cButton
this got the function:
onAction
the parameter for onAction is a function that should be called if onAction is triggered.
how to make this in cpp?
thank you
Dominik