As stated in the title, CreateDevice( ) continues to fail when called. My codes is lengthy so it won't be practical to post it here. However, I can post the call to CreateDevice( ):
1 2 3 4 5 6 7
LPDIRECT3D9 itrf(0);
LPDIREC3DDEVICE9 device(0);
D3DPRESENT_PARAMETERS params;
// Initialization of params and itrf here...
itrf->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, ¶ms, &device);
I can't give many details as I'm receiving no errors or warnings. Any additional code can be posted if required.
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_DEVICELOST, D3DERR_INVALIDCALL, D3DERR_NOTAVAILABLE, D3DERR_OUTOFVIDEOMEMORY.