I'm struggling with a problem for a while and I hope some of you can help me out. The title for this question is vague, so I will try to explain my problem as best as I can!
I'm am creating a project (in C++ using Visual studio 2012) with a DLL that has the DirectX toolkit and DXUT
as references. I initialize DXUT
(the device and all that kind of stuff) in the DLL and create a GameScene
(GameScene
is in the executable) after DXUT
is initialized. The GameScene
derives from its base class BaseScene
(BaseScene
is in the DLL project).
When I call DXUTGetD3D11Device()
to get the DirectX device in the GameScene
(in the executable) it is all fine, but when I call DXUTGetD3D11Device()
in the BaseScene
it returns null.
Note: This counts for all the DXUT
functions!
Note: The executable has the same references as the dll + the dll!
If you need more information to answer my question, ask me! I find it really hard to explain my problem and I will try my best to make it more clear!