Previously, I was using a static pointer to reference the parent class like this
Code:
dynamic_cast<CMyApp*>(CSimApplication::m_pSimApp)->GetStuff();
This is very handy for me, but when I move the testing program into a dll module, the static pointer is no longer valid inside the dll
I still want to use it, because it is very handy and of course, used everywhere already.
Thanks
Jack