Hi, would anyone be able to help us on this problem. I have got a callback function declared within my class, under protected..
I haven't put any code within this yet, as i'm just trying to get past this error message from the compiler.Code:VOID CALLBACK Line(int X, int Y, LPARAM lpData){};
The callback function relates towhich is called from within a draw function in my class. I keep getting this following error message related to the 5th parameter withinCode:LineDDA(0, 0, 50, 50, (LINEDDAPROC)Line, (long)Welcome);
LineDDA() function
I've also tried including the get address of operator &, but i get a different error message then.Quote:
[C++ Error] Ass1.cpp(128): E2235 Member function must be called or its address taken
However, when i makeglobal, 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.Code:VOID CALLBACK Line(int X, int Y, LPARAM lpData){};