Share via


Debugging Classes

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

DirectShow provides many debugging functions and macros. It also includes the following classes that aid in debugging filter development:

The following diagram illustrates these classes.

Aa915590.1dd3ce66-bfcf-4c7a-aad7-7b2ac34a9941(en-us,MSDN.10).gif

CDispBasic converts the m_PString member to the proper string size.

CDisp provides a constructor that sets the CDispBasic class's m_PString member to a string describing some relevant debugging information about the object used as a parameter to the constructor.

For example, when constructed with an IPin pointer, m_PString returns the name of the pin; when constructed with a CLSID, m_PString returns a string representation of it.

The class also provides an LPCTSTR cast operator that returns the value of m_PString, so the class can be cast as an LPCTSTR value to return the string when constructed.

CGuidNameList implements an array of globally unique identifier (GUID) names in the Uuids.h include file. This enables you to retrieve the GUID name for a media type.