Ok if I declare my functions in a class as.

SetEvent(long tEvent,void *funcname);

MSVC lets me do
void SomeFunc();
void SomeotherFunc(int, int);
....
SomeClass someobject;
....
someobject.SetEvent(1,SomeFunc);
someobject.SetEvent(1,SomeotherFunc);


However Ming32 errors on both.
I have to cast it which I dont want to do.

What is the correct way to declare a function that takes a function as a parameter. Or is it possible?

packetvb