【发布时间】:2018-05-30 03:06:21
【问题描述】:
我在这里C# Which is the fastest way to take a screen shot? 看到了这篇文章,并试图实现利用 SharpDX 的答案。它似乎在 Windows 10 上运行良好,但在 Windows 7 上崩溃。它给出的错误是:
Unhandled Exception: SharpDX.SharpDXException: HRESULT: [0x800004002], Module: [General],
ApiCode: [E_NOINTERFACE/No such interface supported], Message No such interface supported
它指向的堆栈跟踪...
var factory = new Factory1();
var adapter = factory.GetAdapter1(0);
var device = new SharpDX.Direct3D11.Device(adapter);
var output = adapter.GetOutput(0);
var output1 = output.QueryInterface<Output1>();
发生在执行 QueryInterface 的 output1 行。我不太了解图形驱动程序,但这是 DirectX11 配置的问题吗?或者这是 Windows 7 固有的东西?
【问题讨论】:
标签: screenshot directx-11 sharpdx