   CreatDevice()
  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. 
  I thought direct draw died with 7? It sucked anyway... ;  Perhaps the DX install has become mangled?Apart from that, what have you changed lately that would affect it (present parameters etc.)?-Mezz ;  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;    } ;  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 -MezzP.S. perhaps you''ve updated you graphics card driver recently and that''s given it a problem? 