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