The sample code in the DirectShow SDK has a small error

xiaoxiao2021-03-06  94

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);. // error should be 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).;

转载请注明原文地址:https://www.9cbs.com/read-125973.html

New Post(0)