Posted by: Keith Sandberg
I am trying to implement the sample code shown here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/howtoplayafile.asp
I have successfully create the supporting APL's and have an app that
compiles. I am using TD 2.1 on XP.
However, I am having trouble "interpreting" the C++ sample into SAL
equivalent. I would do much better if the sample were in VB. :wink:
In particular, I am confused by the C++ example's call to the QueryInterface
method.
The sample shows:
hr = qGraph->QueryInterface(IID_IMediaControl, (void **)&pControl);
However, when I browse the "UDV Functions" window in TD, my qGraph object
has no "QueryInterface" function... but it DOES have a "GetInterface"
function. Is that the same thing? Selecting GetInterface gives me SAL
code:
Call qGraph.GetInterface( object, string )
Can someone help? Thanks!