I need to get the address of a member function.I found out that it can't be done as usual ,i.e. using the function name as a pointer .
But Turbo C++ 3.0 help tells me that it can be done like this:
&ClassName::MemberFunction
Bu it also states that member function pointers are not true pointer.I cannot use it as a pointer to a member function.
The following is what i want to accomplish:
class C
{
......
void interrupt far (*OldISR)(...);
void interrupt far ISR(...);
void func();
}
void C::func()
{
OldISR = getvect(INT_NO);
setvect(INT_NO,&C::ISR);
}
But it simply doesn't work.
How can i do that?