Compiler Error C2066

cast to function type is illegal

In ANSI C, it is not legal to cast between a function pointer and a data pointer.