Hi, I’m having a frustrating problem trying to create the device. As you can see in the code block I’m trying to first of all use the hardware to act as the device, however for some reason my hardware is not picking up on it. I thought maybe it was my drivers because if I use the “Reference” driver type, then it passes the creation with no problems. So I went to nVidia’s website and found Win 7 drivers for my 7950 gt graphics card. I updated my drivers and I still have the same issue. From everything I could find, that update allows DirectX 10 and DirectX 11 to work through my card. Any ideas on if I’m missing something in my configuration settings would be greatly appreciated. My school doesn’t have win 7 pcs, so that’s why I want to stick to D3D10.
PC
Win 7 (64)
Visual Studios 2005
nVidia GeForce 7950 gt
HRESULT hr = D3D10CreateDeviceAndSwapChain(NULL,
D3D10_DRIVER_TYPE_HARDWARE,
NULL,
deviceFlags,
D3D10_SDK_VERSION,
&scDesc,
&swapChain,
&d3dDevice);
if (FAILED(hr))
{
hr = D3D10CreateDeviceAndSwapChain(NULL,
D3D10_DRIVER_TYPE_REFERENCE,
NULL,
deviceFlags,
D3D10_SDK_VERSION,
&scDesc,
&swapChain,
&d3dDevice);
if (FAILED(hr))
{
return;
}
}