IWMSPlaylistParser Interface Cannot be Implemented in C#



Someone posted similar questions few months ago regarding the
IWMSPlaylistParser interface can not be implementated if you using C#,
could anyone give some advices?

Here is the error message

Error 2 'COLPlaylistParse.COLPlaylistParserPlugin' does not implement
interface member
'Microsoft.WindowsMediaServices.Interop.IWMSPlaylistParser.ReadPlaylist(Microsoft.WindowsMediaServices.Interop.INSSBuffer,
interop_msxml.IXMLDOMDocument,
Microsoft.WindowsMediaServices.Interop.IWMSPlaylistParserCallback,
ulong)'

But actually the implementation is there.

All other interfaces like IWMSBasicPlugin, IWMSPlaylistParserPlugin,
IWMSPlaylistParserPluginCallback and IWMSPlaylistParserCallback are OK.
And there is sample in C++ can implement this interface.

It is weird. And the only difference I can tell is here:

For IWMSBasicPlugin interface (and all other implementable interface in
C#)
namespace Microsoft.WindowsMediaServices.Interop
{
[InterfaceType(1)]
[Guid("66E6CE48-F8BB-4BCC-8FD6-42A9D5D32871")]
.....

For IWMSPlaylistParser interface
namespace Microsoft.WindowsMediaServices.Interop
{
[Guid("0EE1F2EC-48EF-11D2-9EFF-006097D2D7CF")]
[InterfaceType(1)]
.....

Thanks!
Dongxian Yao

.



Relevant Pages