Groups | Blog | Home
all groups > dotnet interop > february 2006 >

dotnet interop : How to do m_spPlayer->QueryInterface(&spSyncServices); on C#


Artur H. Shamsutdinov
2/21/2006 6:59:28 AM
In Windows Media SDK Help to initialize IWMPSyncServices we using
m_spPlayer->QueryInterface(&spSyncServices);
But how can initialize IWMPSyncServices in C#. I tried to do in such way
IWMPSyncServices ss = (IWMPSyncServices)Player; but ss comes null.
How to do?

Mattias Sjögren
2/21/2006 11:32:40 PM

[quoted text, click to view]

Really? That should only give you null if Player is null. If the cast
fails you should get an exception.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Artur H. Shamsutdinov
2/22/2006 3:08:27 AM


[quoted text, click to view]

I'm sorry - of course cast fails with exception.

[quoted text, click to view]
AddThis Social Bookmark Button