I have encountered a problem when i was trying to compile and run one of microsoft's DirectX 10/11 tutorials which are located in: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Samples\C++. I am on a 64 bit machine but i am developing for 32 bit.
The DX9 Tutorials work fine and have no problem, its just the DX10/11 Tutorials. After Tutorial 0 which shows you how to create a window, the other tutorial which initializes D3D, opens for a while and immediately closes. In other Tutorials the same happens and i also sometimes get the "failed to create D3D device!" error.
I noticed that i also get this error in VS 2010 Output log :
First-chance exception at 0x7721c41f in Tutorial01.exe: Microsoft C++ exception: _com_error at memory location 0x0034f04c.. First-chance exception at 0x7721c41f in Tutorial01.exe: Microsoft C++ exception: _com_error at memory location 0x0034f04c..
I just started learning DirectX and i do not know what this error means.
These are the additional Dependecies in their samples:
d3d10.lib d3dx10d.lib d3dx9d.lib dxerr.lib dxguid.lib winmm.lib comctl32.lib
On VS 2010 i am running on Debug as well. If anyone could help i would appreciate it a lot.
My graphics card is a Nvidia Geforce 660 GTX which is a DX11 Class card so i do not think it is hardware related.
Edited by DragonBooster, 13 January 2014 - 07:00 AM.