You want the address of a function?
int foo()
{
// blabla
return something;
}
// pointer to the function
int (*fn)();
// set pointer
fn = foo;
You can also get pointers to class methods. I have not used them so I'm not sure how they work.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
The people as codeproject.com seems to have answered your question quite adequately. I see no point in rehashing something that was already posted over there.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343