AddSourceFilterForMoniker Issue

shaun001
2013-02-14
2013-02-14
  • shaun001
    shaun001
    2013-02-14

    Hi, I am trying to develop a webcam capture program in C# and when calling AddSourceFilterForMoniker using windows 7 64 bit VS 2008 "running under X86 Target mode" It throws an exception Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) , I am not sure why it throws that error as soon as it hits the AddSourceFilterForMoniker function call. Any Suggestions?

     
  • shaun001
    shaun001
    2013-02-14

    And secondly, when I run the same program in target X64 or Any CPU the code moves past the AddSourceFilterForMoniker call and my resolution list is filled, the problem only happends in X86 target mode.

     
  • Eric
    Eric
    2013-02-14

    I don't know what kind of filter you want to add but you must be warned that on a 64 bits OS, you have to install filters binaries for both 32 bits and 64 bits versions.