, . . .
Mat, :
void (*myFuncPtr)(void) = (void (*)(void)) FUNC;
typedef, C .
In addition, you must be sure that the called function is at the same exact address every time your embedded DLL starts. I'm not sure how you can be sure of that, though ...
In addition, you will need to pay attention to the calling conventions and any arguments that the function can expect FUNC, because if you make a mistake, you will probably end up with a stack corruption.
source
share