I'm so sorry if this is in the wrong section.
My problem is that this line of code keeps failing:
d3d = Direct3DCreate9 ( D3D_SDK_VERSION );
if ( !d3d )
{
MessageBox ( hWnd, L"CGraphics::Initialize failed on Direct3DCreate9() ", L"Error!" , NULL );
return false;
}
if this helps solve the problem, this is inside a function of a class, and the original definition of d3d is also in that class, which I coded so:
LPDIRECT3D9 d3d;
I keep getting my failure message box, and I cannot figure out why it keeps failing. I have searched the internet, and my initialization method appears to be the same as all the others that I have seen.