Hi, would anyone be able to help us on this problem. I have got a callback function declared within my class, under protected..
Code:
VOID CALLBACK Line(int X, int Y, LPARAM lpData){};
I haven't put any code within this yet, as i'm just trying to get past this error message from the compiler.
The callback function relates to
Code:
LineDDA(0, 0, 50, 50, (LINEDDAPROC)Line, (long)Welcome);
which is called from within a draw function in my class. I keep getting this following error message related to the 5th parameter within
LineDDA() function
[C++ Error] Ass1.cpp(128): E2235 Member function must be called or its address taken
I've also tried including the get address of operator &, but i get a different error message then.
However, when i make
Code:
VOID CALLBACK Line(int X, int Y, LPARAM lpData){};
global, i.e. outside of my class it compiles. This callback function has got to be within my class though as it needs to access certain variables. Any help on the problem would be appreciated.