Home » Community » Newbie corner » Callback and Thisback Function call parameters
Re: Callback and Thisback Function call parameters [message #43431 is a reply to message #43429] |
Tue, 29 July 2014 13:04 |
NilaT
Messages: 70 Registered: November 2011 Location: Austria
|
Member |
|
|
The problem is, at the Callback definition, I only have 2 Parameters.
The third is used at another place and is not known at the point of definition. (int was just an example, in real it's a pointer to an own class)
So, I have to add the third parameter afterwards...
Is there a way to change a Callback2 to a Callback3 during runtime?
//edit: After reviewing our class hierarchy I discovered, that the needed class is there and I can use it, so I changed Callback2 to Callback3 and it works fine.
Nevertheless, is it possible to add parameters to the called function beside those that come from the Callback itself, like shown above?
Just in case the parameter is an object from a class thats not known in the Callback calling function...
[Updated on: Tue, 29 July 2014 13:46] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 13 20:13:55 CEST 2024
Total time taken to generate the page: 0.02257 seconds
|