I am trying to use a function pointer, but the 3 lines below just don't want to cooperate ...
I get error code C3867.
Do you see what I'm doing wrong?
In the .h file
void MyFunc(int, FILEINFO*(*)(FILEINFO*), FILEINFO*, int);
Definition in .cpp file
void MyFunc(int number, FILEINFO*(*GetFiles)(FILEINFO*), FILEINFO* args, int type);
Then this is where I actually call the function
MyFuncClass->MyFunc(GetNumber(), &BigClass::PassThis, GetArgs(), TheType);
Any problems popping up?
source
share