如何解决问题 - 未解决的外部符号MFCreateDXGIDeviceManager? [英] How to solve issue - unresolved external symbol MFCreateDXGIDeviceManager?

查看:1275
本文介绍了如何解决问题 - 未解决的外部符号MFCreateDXGIDeviceManager?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Media Foundation转换库捕获视频。

我用过



I want to capture video using Media Foundation transform library.
I have used

HRESULT hr = S_OK;
D3D_FEATURE_LEVEL FeatureLevel;
ID3D11DeviceContext* pDX11DeviceContext;

hr = CreateDX11Device(&g_pDX11Device, &pDX11DeviceContext, &FeatureLevel);

if (SUCCEEDED(hr))
{
    hr = MFCreateDXGIDeviceManager(&g_ResetToken, &g_pDXGIMan);
}







在构建vcpp应用程序时收到错误:

未解析的外部符号MFCreateDXGIDeviceManagerv



为此,我用了






On building the vcpp application I received error:
unresolved external symbol MFCreateDXGIDeviceManagerv

For this, I used

<pre lang="cs">#pragma comment(lib, "mf") // For MFEnumDevices
#pragma comment(lib, "mfplat")
#pragma comment(lib, "mfreadwrite")
#pragma comment(lib, "dxva2")
#pragma comment(lib, "d3d11")
#pragma comment(lib, "mfuuid")</pre>

推荐答案

你可以谷歌吧:MFCreateDXGIDeviceManager 需要包含Mfplat.lib。



...
You could had google it: MFCreateDXGIDeviceManager needs Mfplat.lib to be included.

...


谢谢KarstenK

我用Google搜索并包含了Mfplat.lib,但它没有用。
Thanks KarstenK
I googled it and included Mfplat.lib but it didnt work.


解决了问题。我需要在VC ++目录部分的项目属性中的Library目录中添加路径。
Solved issue. I need to add path in Library directory in project properties under VC++ Directories section.


这篇关于如何解决问题 - 未解决的外部符号MFCreateDXGIDeviceManager?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆