Hi I'am still having problem to write function pointer. Couldsomeone give me the answer why the following code does'nt compile.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

class Test;

typedef void (Test::*FUNCPTR)();


class Test
{
public:
Test() {MyFunc=Testfunction;};
~Test() {} ;
void Testfunction() { printf("It works !!!\n"); };


FUNCPTR MyFunc;
};

int main()
{
Test vTest;

*(vTest.MyFunc)();

return (0);
}

Thanks.