Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3241616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:13:10+00:00 2026-05-17T18:13:10+00:00

I have found an example of a control written in C++/CLI that grabs and

  • 0

I have found an example of a control written in C++/CLI that grabs and displays a webcam feed using DirectShow. I’d like to take this example and utilize it from my WPF application. I’ve tried (and butchered) several different approaches, including taking the Webcam class and creating a HwndHost from my WPF application to load the Webcam control into. I’ve hit dead ends with all of these things but my understanding of what I’m attempting to achieve isn’t enough to form a specific enough question.

So, I’m looking for some guidance on the overall approach I should be taking to achieve this. What do I need to do to expose the C++ webcam component to be consumable by my WPF application? And then what approach should I take to consume that C++ component – Wrapper? PInvoke? Something else?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:13:10+00:00Added an answer on May 17, 2026 at 6:13 pm

    If you want a Webcam in WPF you can try my WPF MediaKit. It has a VideoCaptureElement you can use and you will not have any airspace issues.

    If you want to use your webcam class and use .NET, I would first try getting it to work in a Winforms control. When you have that working, try the WindowsFormsHost control. It will be much easier for you to use vs the raw HwndHost.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found some example code that creates a gradient fill in a WPF
I have found that my HTML is, to be honest, very clunky. Small, simple
I have found some libraries or web services in PHP that does the job.
I have found that there is generally a singe type or namespace that takes
I have found many tutorials about using Windows Server 2003 as a development machine,
I have found C++ FQA Lite very edificatory and would like to read more
I've got another simple one (I think) that's stumping me. I have written a
I have a python based application which works like a feed aggregator and needs
I have found some in the Cappuccino website (vim, textmate and SubEthaEdit), but not
I have found jQuery to be a great tool to simplify my MVC Views.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.