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.