我想使用Media Foundation转换库捕获视频。
我用过
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应用程序时,我收到错误:
unresolved external symbol MFCreateDXGIDeviceManagerv
为此,我使用了
#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")
以包括与MFCreateDXGIDeviceManagerv相关的库。尽管如此,我还是得到了相同的错误。请建议解决方案。
发布于 2014-10-14 06:19:27
MFCreateDXGIDeviceManager在Windows7的MshtmlMedia.dll中,在Windows8和更高版本的MFPlat.dll中。
https://stackoverflow.com/questions/26336450
复制相似问题