Hi I have a problem with a plugin I am making. The program I am plugin into only allows me to use functions with no arguments, but I want to use the same function for an unknown(at compile time) number of different callbacks all with different arguments.
I want different user information to pass to the function when the user initiates the calling of this function, depending on which part of the program called the function. The user information will be stored in a configuration file.
I hope this is clear enough for people to work out what I mean. In essence I can try and put it as this pseudo code:
Code:void func (char *arg) { /*...do stuff...*/ } void newfunc() = bind(&oldfunc, arg)