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. VFW in C#

VFW in C#

Scheduled Pinned Locked Moved C#
csharphelpquestion
3 Posts 3 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.
  • J Offline
    J Offline
    Jarrett Vance
    wrote on last edited by
    #1

    Is it possible to call upon video for windows VFW in C#? Is there any existing code for compressing an AVI in C#? Thanks for any help or links you can provide.

    S D 2 Replies Last reply
    0
    • J Jarrett Vance

      Is it possible to call upon video for windows VFW in C#? Is there any existing code for compressing an AVI in C#? Thanks for any help or links you can provide.

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      Anything you do with WIN32 and C/C++ is possible in C# thanks to interop. When you know the method signature, you just need to declare it in your code with a [DllImport("dllname")] attribute like in ::SendMessage :

      [DllImport("user32.dll", CharSet=CharSet.Auto)]
      public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);

      Even more interesting is that in your case there are COM components. And the VS.NET IDE automatically imports their type-library, wrap interfaces and makes them look like any namespace to you. That's what you get for instance when you need integration with Internet Explorer, MS Office, ... Now about DirectShow itself, this SDK has both COM Components and simple low-level APIs. Just help yourself. Below is 2 CP articles about it : DirectShow media player[^] DirectShow.NET[^] You've got an introductory article about DirectShow in MSDN Mag - july 2002[^].


      if you start putting in too manay features, it no longer remains useful for beginners quote in a CP article comment, shiraz baig

      1 Reply Last reply
      0
      • J Jarrett Vance

        Is it possible to call upon video for windows VFW in C#? Is there any existing code for compressing an AVI in C#? Thanks for any help or links you can provide.

        D Offline
        D Offline
        Daniel Strigl
        wrote on last edited by
        #3

        Take a look on DirectShow.NET. -- Nice greets, Daniel.

        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