C# directshow 问题
Type comtype = null; object comobj = null; comtype = Type.GetTypeFromCLSID( Clsid.FilterGraph ); if( comtype == null ) throw new NotSupportedException( "DirectX (8.1 or higher) not installed?" ); comobj = Activator.CreateInstance( comtype ); graphBuilder = (IGraphBuilder) comobj; comobj = null; int hr = graphBuilder.RenderFile( clipFile, null ); if( hr < 0 ) Marshal.ThrowExceptionForHR( hr ); .......后面代码就不写了........