Adding the Video Control to a Microsoft Visual C++ Project

[This is preliminary documentation and subject to change.]

You can add the Video control to Microsoft® Foundation Classes (MFC) and Active Template Library (ATL) projects in the Microsoft® Visual C++® development system. To do this, use the following procedure.

    To add the Video control to a Visual C++ project
  1. Open or create a Visual C++ project.
  2. Select Add To Project from the Project menu.
  3. Select Components and Controls from the pop-up menu.

    A dialog box appears displaying a set of folders containing components. Open the folder titled Registered ActiveX Controls.

  4. Select Vid Control from the list and click the Insert button. If Vid Control is not included in the list, verify that the WebTV for Windows component of Windows 98 is installed.

    The Confirm Classes dialog box appears, which enables you to select which of the Video control's classes you would like to add to your application.

  5. Select the check boxes next to the classes you want to add to your project. Note that several of the classes listed are reserved for future use and are not currently implemented. For a list of the Video control's reserved classes, see Reserved Classes in the Video Control.

    Visual C++ automatically generates header and implementation files for the classes you select and adds them to your project.

Once the Video control has been added to your project, you can create instances of Video control objects, access the Video control's methods, properties, and events, and add the Video control to user interfaces.

Note  To access objects that are not part of the Video control, such as BPCVBIControl and BPCSuspend, run Mytyplib.exe on Vidsvr.odl and insert the generated files into your project. In addition, you can use the header file Bpcsusp.h, which wraps the IBPCSuspend interface and provides additional suspend functionality.

The software included with the Broadcast Architecture Programmer's Reference includes a sample MFC application, VideoMFC.exe, that uses the Video control. For more information about this sample, see Broadcast Architecture Sample Applications.