I'm unable to get DirectX C++ applications working, they compile but give the following runtime error:

![enter image description here](https://i.stack.imgur.com/XeaoW.png)

I have Windows 8.1 installed, but dxdiag says everything's working properly (with Direct3D/Draw/AGP texture acceleration enabled), using DirectX 11

When I run this exact same code on my Windows 8 machine it does work (same dxdiag), but would love to get it working on Windows 8.1

I'm using Visual Studio and C++. The code I'm using is geared towards Direct X 11

Any help?