Results 1 to 4 of 4

Thread: [RESOLVED] [2008] Webcam Control.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Lancashire UK
    Posts
    375

    Resolved [RESOLVED] [2008] Webcam Control.

    Just a quick question, does anybody know how to invoke and display a web cams settings page from within an application.

    I can display and record the video but I am looking to control frame rate and exposure etc.

    I've have a couple of 3rd party applications that show my webcams settings page from within the application so I know it can be done I just don't know how

    Thanks in advance for any info.
    If my post helps , please feel free to rate it

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Lancashire UK
    Posts
    375

    Re: [2008] Webcam Control.

    Think I may have found part of the answer but this raises another question, how do I declare this structure in vb.net ?

    http://msdn2.microsoft.com/en-gb/lib...73(VS.85).aspx
    If my post helps , please feel free to rate it

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] Webcam Control.

    That is an unmanaged type. You can't create an instance of that type in managed code. You'd need to declare a managed type that corresponded first:
    vb.net Code:
    1. Public Structure CAPDRIVERCAPS
    2.     Public wDeviceIndex As UInteger
    3.     Public fHasOverlay As Boolean
    4.     Public fHasDlgVideoSource As Boolean
    5.     Public fHasDlgVideoFormat As Boolean
    6.     Public fHasDlgVideoDisplay As Boolean
    7.     Public fCaptureInitialized As Boolean
    8.     Public fDriverSuppliesPalettes As Boolean
    9.     Public hVideoIn As IntPtr
    10.     Public hVideoOut As IntPtr
    11.     Public hVideoExtIn As IntPtr
    12.     Public hVideoExtOut As IntPtr
    13. End Structure
    Now you can create an instance of your managed type and pass it to any unmanaged functions that require an instance of the corresponding unmanaged type.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Lancashire UK
    Posts
    375

    Re: [2008] Webcam Control.

    Thanks JMC
    If my post helps , please feel free to rate it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width