Hi !!
I'm trying to convert C code to C++.
This is my function:
static void (*selection)(void) = NULL;
static void (*pick)(GLint name) = NULL;
void zprSelectionFunc(void (*f)(void))
{
selection = f;
}
void zprPickFunc(void (*f)(GLint name))
{
pick = f;
}
But I have this problem when I compile:
error C2440: 'initializing' : cannot convert from 'void *' to 'void (__cdecl *)(void)
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Please!!...help me whit this problem...Thanks.