Steve06
Mar 28th, 2006, 02:33 PM
Hello,
At the moment I'm programming in VBA6 for Excel 2003. I've a decent C/C++ background and wonder how I can implement the following in VBA:
I want to declare a function, which accepts a pointer to another function as an argument, and then is able to call this pointed function.
An example in C:
float myfuntion(void (*inputfunction)(float, float*, float*), float x1, float x2)
{
...
(*inputfunction)(x1, &fl, &fh) // calling the function
...
}
Thank you very much for your help.
Regards,
Steve
At the moment I'm programming in VBA6 for Excel 2003. I've a decent C/C++ background and wonder how I can implement the following in VBA:
I want to declare a function, which accepts a pointer to another function as an argument, and then is able to call this pointed function.
An example in C:
float myfuntion(void (*inputfunction)(float, float*, float*), float x1, float x2)
{
...
(*inputfunction)(x1, &fl, &fh) // calling the function
...
}
Thank you very much for your help.
Regards,
Steve