ICaptureGraphBuilder2's FindPin() returning -tive value
-
hye, (Using DShowNET)When i call this FindPin(), it returns nagative value.I m calling it like this; ICaptureGraphBuilder2 capGraph; IPin pin; Guid pc = PinCategory.Capture; Guid pt = Guid.Empty; int hr = capGraph.FindPin( Device(which i found attachd), 1, ref pc, ref pt, false, 0, p); and it returns negative value(-214...). I checkd the parameters during debugging, no problem in them then Whats wrong m i doing?
B!z
-
hye, (Using DShowNET)When i call this FindPin(), it returns nagative value.I m calling it like this; ICaptureGraphBuilder2 capGraph; IPin pin; Guid pc = PinCategory.Capture; Guid pt = Guid.Empty; int hr = capGraph.FindPin( Device(which i found attachd), 1, ref pc, ref pt, false, 0, p); and it returns negative value(-214...). I checkd the parameters during debugging, no problem in them then Whats wrong m i doing?
B!z
-
B!Z, I don't know anything about ICaptureGraphBuilder2, but from your code you don't construct the capGraph or pin object. This might be the problem... Regards, Gareth.
No. coz last time when another function returned this same negative value (-214...), the problem was not in that function itself. And BTW i wrote "ICaptureGraphBuilder2 capGraph;", its not actually like that(coz the code was bit lengthy so included that method only). i just wanted to tell that capGraph is actully its object.Anyways thx for the reply. Anyone else who worked using DShowNET by .NET master?
B!z