Skip to main content
gamedev.net
🔒 Locked

CreatDevice()

Started by xxxTITANxxx Feb 3, 2004 at 8:41 AM 3 replies 350+ views
Original Post
xxxTITANxxx
xxxTITANxxx
What can be some possible problems when this error occurs. It was working the other day but now its not. Direct3D8: (ERROR) :Failed to create DirectDraw. CreateDevice Failed.
jimmynelson
jimmynelson
I thought direct draw died with 7? It sucked anyway...
Mezz
Mezz
Perhaps the DX install has become mangled?
Apart from that, what have you changed lately that would affect it (present parameters etc.)?

-Mezz
xxxTITANxxx
xxxTITANxxx
I really have not changed anything,this is where the code is breaking:

if(FAILED(g_pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &g_pD3DDevice)))
{
return E_FAIL;
}
Mezz
Mezz
Hmm, looks fine to me. There really isn''t a lot more I can think of from that, I assume you''ve tried all the step throughs to make sure the window handle etc. are all valid, so I''m just not sure what''s going on - you could try the some of the D3D sample applications, if they don''t exhibit the same problem then it''s still probably you somewhere along the line

-Mezz

P.S. perhaps you''ve updated you graphics card driver recently and that''s given it a problem?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.