OK, I have my main application, that contains my message loop, and also my code to create and register new windows
If I have my window functions that need passing to the window structure (via the (WNDPROC) foo; route in my main.cpp file, then they work.
If I have them in my class files, then I get an error 2440 (cannot cast / convert from LRESULT CALLBACK foo(..) to (WNDPROC)foo(..)
I have tried reinterpret_cast<>, adn also creating function pointers, but no joy. Whats teh trick here ?
K
If I have my window functions that need passing to the window structure (via the (WNDPROC) foo; route in my main.cpp file, then they work.
If I have them in my class files, then I get an error 2440 (cannot cast / convert from LRESULT CALLBACK foo(..) to (WNDPROC)foo(..)
I have tried reinterpret_cast<>, adn also creating function pointers, but no joy. Whats teh trick here ?
K