Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Solve issue - unresolved external symbol MFCreateDXGIDeviceManager

$
0
0

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);
}

On building the vcpp application I received error:

unresolved external symbol MFCreateDXGIDeviceManagerv

For this, I used

#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")

to include libraries related to MFCreateDXGIDeviceManagerv. Still I am getting same error. Please suggest the solution.




Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>