How to use/install custom Directshow filter

后端 未结 3 604
谎友^
谎友^ 2020-12-11 18:25

I have custom compiled directshow filter - filter.DLL - but how to use, or install this filter in system?

3条回答
  •  鱼传尺愫
    2020-12-11 18:36

    The main way would be to register the filter file with regsvr32 filter.dll and than create the filter with it's CLSID in your application.

    If the filter are in the same codebase as the application, you can just create the filter with new and use it.

    I prefer to load the filter.dll with CoLoadLibrary to get the IClassFactory of the filter and create the filter. You can test this with GraphStudioNext. You can find sample source code to load a filter this way here.

提交回复
热议问题