Why isn't my IE MIME filter being created or called?

后端 未结 1 635
南旧
南旧 2021-01-22 01:10

I\'m trying to create a MIME filter to do some custom processing of resources received with web pages before passing them to the web browser control in our Windows application.

1条回答
  •  北海茫月
    2021-01-22 01:12

    Turns out the MSDN documentation and Visual Studio 2008 disagree about default COM visibility. The MSDN documentation says that all .NET types are visible to COM by default, but the Visual Studio 2008 class library project template disables COM visibility in the AssemblyInfo.cs file.

    Solution: remove the line

    [assembly: ComVisible(false)]
    

    from the AssemblyInfo.cs file.

    I may have also had bad COM interface declarations. I've replaced them with the ones from this CodeProject document.

    The only readable MIME filter sample code I've found is available here and (briefly) documented here.

    0 讨论(0)
提交回复
热议问题