Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ICaptureGraphBuilder2's FindPin() returning -tive value

ICaptureGraphBuilder2's FindPin() returning -tive value

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    B Z
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • B 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

      G Offline
      G Offline
      Gareth H
      wrote on last edited by
      #2

      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.

      B 1 Reply Last reply
      0
      • G Gareth H

        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.

        B Offline
        B Offline
        B Z
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups