Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Atemu

Member Since 08 Mar 2012
Offline Last Active Yesterday, 01:54 PM
-----

Topics I've Started

D3D11CreateDevice failed

28 February 2013 - 08:36 AM

Hello,

 

I have a huge problem. I can't run my program in Debug, I use the D3D11_CREATE_DEVICE_DEBUG when I want to initialize DX 11. However, it works in Release mode. I tried toreinstall the DirectX SDK but it's not successfull sad.png

Yesterday everything was working fine and not today sad.png

 

The source code that initialize DX 11:

UINT createDeviceFlags = 0;
#if defined(DEBUG) || defined(_DEBUG)  
    createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG;
#endif

D3D_FEATURE_LEVEL featureLevel;
HRESULT hr = D3D11CreateDevice(
		0,                 // default adapter
		md3dDriverType,
		0,                 // no software device
		createDeviceFlags, 
		0, 0,              // default feature level array
		D3D11_SDK_VERSION,
		&md3dDevice,
		&featureLevel,
		&md3dImmediateContext);

if( FAILED(hr) )
{
	MessageBox(0, L"D3D11CreateDevice Failed.", 0, 0);
	DXTrace( __FILE__, __LINE__, hr, DXGetErrorDescription(hr), FALSE );
	return false;
}

These are the information I get:

First-chance exception at 0x7751c41f in SpinningCube.exe: Microsoft C++ exception: _com_error at memory location 0x0031ec88..
An undetermined error occurred hr=E_FAIL (0x80004005)

Thanks in advance !


Is it a good idea to do a project like that?

14 January 2013 - 10:14 AM

Good afternoon everyone !
 
Last year I took an OpenGL course which was quite cool, the only problem is that we learned a very old way to program in OpenGL (we used GLUT). I had a project to do, a Pac-Man, in 2D and then in 3D. It was great, really, I liked it a lot ! The most interesting part was the graphics programming smile.png For my internship I looked for one in that domain but especially in the video game industry. Unfortunately, it's something very difficult (and rare) to find in Belgium. I finally did it in a company that are creating their own graphic engine on the top of OGRE. I didn't worked on the engine itself but on a tool, a plugin for Autodesk Revit Architecture. I had to integrate OGRE for a real-time preview of the opened file in Revit. It was quite a challenge, not because of OGRE but because of the Revit API which is awful and absolutely not thought for doing that.
 
Well that's it for the past smile.png
 
Few month ago I purchased the book "Introduction to game programming with DirectX 11" by Frank D. Luna and I'm reading it. It's very well written and understandable. I had an idea project to do while learning DirectX 11, some kind of a demo application that shows what I implemented (e.g. generating sphere, loading mesh, generate terrain...). I would like to know what you think of that, if you have any advice to give me or anything else that can help me.
 
Thanks in advance !
 
Atemu

PARTNERS