Share via


NAME (Compact 2013)

3/26/2014

Generates a debug-only string.

Syntax

NAME(
    strLiteral
);

Parameters

  • strLiteral
    Text string, which must be in quotation marks.

Remarks

This macro is helpful for generating the debug name passed to many DirectShow class constructors. For more information about using that aspect of debugging, see Object Register Debugging.

For example:

x = new CVideoRenderer(NAME("Sample Video Renderer"),pUnk,phr);

The NAME macro generates NULL unless DEBUG is defined when the DirectShow headers are included.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

Miscellaneous Macros