共用方式為


NAME

 
Microsoft DirectShow 9.0

NAME

The NAME macro generates a debug-only string.

Syntax

  NAME(
    strLiteral
);

Parameters

strLiteral

Text string.

Remarks

In debug builds, this macro is equivalent to the TEXT macro. In retail builds, it resolves to (TCHAR*) NULL. This macro is useful when declaring the name of an object that derives from the CBaseObject class.

Example

pObject = new CBaseObject(NAME("My Object"));

Requirements

**  Header:** Declared in Wxdebug.h; include Streams.h.

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

See Also