Original Post
Hi, in c++ I've got a function pointer that I want to make equal a member function in a class. For example: As I can't make the function pointer point to the function of the same class, I am wondering if there is some work around for this? Thanks
class App {
public:
void (*fp)();
void doBeep();
App();
};
void App::doBeep() {
Beep(100,50);
}
void App::App() {
fp = doBeep(); //how do i do this line?
}