Microsoft DirectX 9.0

CBaseDispatch Class

CBaseDispatch Class Hierarchy

The CBaseDispatch class is a base class for implementing the IDispatch interface.

This class is limited to supporting the Automation-compatible interfaces exported by the DirectShow type library, QuartzTypeLib. For example, the CMediaControl and CMediaPosition classes use CBaseDispatch to implement IMediaControl and IMediaPosition, respectively. Because of this limitation, there is probably no reason to use CBaseDispatch directly in your own filters.

To use this class, do the following:

For more details, refer to the source code for any of the sample classes declared in Ctlutil.h.

For more information about the IDispatch methods, see the COM documentation included with the Microsoft® Platform SDK.

Requirements

Header: Declared in Ctlutil.h; include Streams.h.

Library: Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

Public Methods  
CBaseDispatch Constructor method.
~CBaseDispatch Destructor method.
GetIDsOfNames Maps a set of names to a corresponding set of DISPIDs.
GetTypeInfo Retrieves the type information for the object, which can then be used to get the type information for an interface.
GetTypeInfoCount Retrieves the number of type information interfaces the object provides.