This could have to do with windows programming, as it could have to do with the specifics of how I'm using the this pointer, however, I'm gonna ask here. KK. K. Here's how it's all laid out.
Code:
window procedure - recieves 'this' of OGL manager in lpCreateParams
opengl class - has-a window class which takes lpCreateParams as a constructor arg
window class - creates window using window procedure and the create params it recieves from opengl class
class w {w(LPVOID createparams) { createwindow(use wndproc, createparams); }
class ogl { friend LRESULT wndproc(blah, blah); window _w; ogl() : _w(this) { } };
LRESULT wndproc(blah, blah) { uses some private routines of ogl; }
I get a warning from passing the this of my ogl class to my window class:
Code:
warning C4355: 'this' : used in base member initializer list
Wot? How dangerous, bad, and crazy is this potentially? Workarounds?