Function pointer problem

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?

+3
source share
4 answers

- , - -. -, BigClass::PassThis -. , .

.

+7

BigClass::PassThis()? - -? -, , this. . 33.4 ++ FAQ Lite.

+9

BigClass. PassThis -, , , , - , ( , 'this').

+2

, &BigClass::PassThis -, .

+2

Source: https://habr.com/ru/post/1709623/


All Articles