A
Allan Bruce
How does one setup a pointer to a member function?
In C, I usually do:
void (*SetKey)(char); // declare a pointer to a function
SetKey = &gPrefs->SetUp; // set the pointer to a valid function
SetKey(lMsg.wParam); // call the function pointed to
but I get errors in cpp, how do I do this?
Thanks
Allan
In C, I usually do:
void (*SetKey)(char); // declare a pointer to a function
SetKey = &gPrefs->SetUp; // set the pointer to a valid function
SetKey(lMsg.wParam); // call the function pointed to
but I get errors in cpp, how do I do this?
Thanks
Allan