Directshow Error : Classfactory Cannot Supply Requested Class

I have created a custom Directshow source filter. This filter works fine in GraphEdt (I can use intelliconnect to render the output pin with no problems at all). But when I try to replicate this inside of a C++ application I get the following error.

Error 0x80040111 :Classfactory Cannot Supply Requested Class.

I have no problems chaining other custom filters together in the app. and I have tried to explicitly chain the GraphEdt filters together (using DirectConnect) yet I still cannot get the source filter to work in my custom app.

Any help on this issue would be greatly appriciated.


Answer this question

Directshow Error : Classfactory Cannot Supply Requested Class

  • Randy R

    My immediate guess is that your c++ code is loading the wrong filter.

    Failing that, try putting a breakpoing in CClassFactory::CreateInstance and see what happens.


  • Thaya

    Thanks LGS.
    It turns out that my registry had 2 instances of the filter. Graphedt was loading one while my app was trying to load another that has since been depricated. Problem solved.

  • Directshow Error : Classfactory Cannot Supply Requested Class