RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:9:30-18:00
你可能遇到了下面的问题
关闭右侧工具栏
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);