S
Sagar Choudhary
I m using a library function which need to be passed a function as
parameter.
If i declare the function as
int (void *, int, char **, char **)
it throws an error
cannot convert parameter from 'int (void *,int,char ** ,char ** )' to
'int (__cdecl *)(void *,int,char ** ,char ** )'
If the same function is moved out of the class or declared static
it works fine.
But i don't want the function to be declared static or moved out of the
class because i m using non static members of the class
I just mentioned the subject according to error.
Any solutions to this problem
parameter.
If i declare the function as
int (void *, int, char **, char **)
it throws an error
cannot convert parameter from 'int (void *,int,char ** ,char ** )' to
'int (__cdecl *)(void *,int,char ** ,char ** )'
If the same function is moved out of the class or declared static
it works fine.
But i don't want the function to be declared static or moved out of the
class because i m using non static members of the class
I just mentioned the subject according to error.
Any solutions to this problem