M
Mark
I'm trying to write a callback function, I've done it before,
but this time I seem to be having problems...
I define the following...
typedef int (* ENUMINTERFACE)(char* szIP);
void enumInterfaces(ENUMINTERFACE pFn);
int InterfaceEnumProc(char* szIP);
then at some point in my code I call
enumInterfaces(InterfaceEnumProc);
I get the compilation error
'cannot convert parameter 1 from int(char*) to int(_cdecl*)(char*)
whats the correct form for declaring callbacks.
Mark
but this time I seem to be having problems...
I define the following...
typedef int (* ENUMINTERFACE)(char* szIP);
void enumInterfaces(ENUMINTERFACE pFn);
int InterfaceEnumProc(char* szIP);
then at some point in my code I call
enumInterfaces(InterfaceEnumProc);
I get the compilation error
'cannot convert parameter 1 from int(char*) to int(_cdecl*)(char*)
whats the correct form for declaring callbacks.
Mark