There may be a better solution, but it would be easy to just place all the arguments into one big array and transfer them to the other function that way. As far as different types are concerned, maybe you could create a different array for each type, use a special class, or maybe use void (dangerous!). Someone else may have a better idea though...