Platform SDK: Broadcast Architecture |
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
A dialog box appears displaying a set of folders containing components.
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.
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.