class MyClass
{
public:
void (*pFunc)(int Value);
};
void main()
{
MyClass mine;
mine.pFunc = SomeFuncThatTakesAnInt;
mine.pFunc(10);
}
That is a really stupid example, and I am doing it from memory, so maybe my pointer to a function declaration isn''t right (I copied the real one straight out of my C++ book). A pointless example, but I hope it gets my point across (no pun intended)
--------------------You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
Visit the ROAD Programming Website for more programming help.