I have a function called
GLOBAL char* GET_Enum(REC_NO recNo )
{
.....
}
also I have a function which take this function as an input like this
static void Dropdowns( char* param ,
char* title,
char* (*enumFunction)(REC_NO),
int maxRecNo)
{
.....
}
Then I call that function like this
Dropdowns("test", "Location", GET_Enum, 3);
But it doesn't compile and gives me the error below:
error: invalid use of void expression
I have looked at this issues Link1 and Link2 which are relevant but I still can't see what I am doing wrong? any idea? Thanks