Hi, maybe i can clarify what im trying to do a little bit. I want to make a program with a modular design, and the way ive decided to do it is to have one central "request" function which is able to get the address of any function in any .dll which is loaded. However, for a .dll to get the address of this function, the "core" must load the .dll and call "initialize" which receives the function pointer to the "request". The problem is I cant find any example of a function pointer defined which receives a function pointer as an argument.
Code:
int (*initialize)(what goes in here) = NULL; //what is the type of a function pointer??? thats what it all boils down to.
&initialize = GetProcAddress(hInstLibrary, "initialize");