Platform SDK: Broadcast Architecture

Adding the Video Control to a Visual C++ Project

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. On the Project menu, click Add To Project.
  3. On the shortcut menu, click Components and Controls.

    A dialog box appears displaying a set of folders containing components.

  4. Double-click to open the Registered ActiveX Controls folder.
  5. In the file list, click to select Vid Control, and click Insert.

    The Confirm Classes dialog box appears, in which you can select the Video control classes to add to your application. If Vid Control is not included in the file list, verify that the WebTV for Windows component of Windows 98 is installed. If the computer does not have WebTV for Windows installed, install it.

  6. In the Confirm Classes dialog box, click to 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 classes that are part of the Video Access server and not part of the Video control, such as BPCVBIControl and BPCSuspend, run the MIDL compiler on the Vidsvr.odl object-definition language file. The MIDL compiler processes an IDL file to generate a type library and output files. This compiler is included with Visual C++. After the compiler has processed the IDL file, insert the generated files into your project.

You can also use the header file Bpcsusp.h with these classes. Bpcsusp.h wraps the IBPCSuspend interface and provides additional suspension functionality.