Directshow SDK中的示例代码有小错误
- 作者:xiaoxiao
- 发表时间:2020-12-23 10:56
- 来源:未知
ms-help://MS.MSDNQTR.2003APR.1033/directx9_c/directx/htm/aboutthecapturegraphbuilder.htm
IGraphBuilder *pGraph = NULL; ICaptureGraphBuilder2 *pBuild = NULL; // Create the Capture Graph Builder. HRESULT hr = CoCreateInstance(CLSID_CaptureGraphBuilder2, NULL, CLSCTX_INPROC_SERVER, IID_ICaptureGraphBuilder2, (void**)&pGraph); //有错误 应该是pBuild IGraphBuilder *pGraph = NULL; ICaptureGraphBuilder2 *pBuild = NULL; // Create the Capture Graph Builder. HRESULT hr = CoCreateInstance(CLSID_CaptureGraphBuilder2, NULL, CLSCTX_INPROC_SERVER, IID_ICaptureGraphBuilder2, (void**)&pGraph);