Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This class provides methods for displaying a number of data types for debugging. It provides a constructor for each type, and can be cast to the LPCTSTRtype for use as a string in a debug statement.

For example, the following code fragment

Copy Code
int MyFunc(REFERENCE_TIME rt, IPin *pPin)
{
	DbgLog((LOG_TRACE, 2, TEXT("MyFunc(%s, %s)"),
		(LPCTSTR) CDisp(CRefTime(rt)),
		(LPCTSTR) CDisp(pPin)));
...
}

could output the following reference time and pin information onto the debug log.

Copy Code
Quartz.dll(tid d7) : MyFunc(1.003 sec,
	CLSID_AudioRender(Audio Input pin (rendered)))

Member Functions

Member function Description

CDisp

Constructs a CDispobject.

Operators

Operator Description

LPCTSTR

Casts to an LPCTSTRtype for use in a debug string.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment