Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

TRACE1

The TRACE macros are obsolete, use ATLTRACE2.

See TRACE0 for a description of the TRACE1 macro.

TRACE1( 
   exp, 
   param1  
)

exp

A format string as used in the run-time function printf.

param1

The name of the variable whose value should be dumped.

// Example for TRACE1
int i = 1;
TRACE1( "Integer = %d\n", i );
// Output: 'Integer = 1'

// Another example for TRACE1
DWORD dwLastError = ::GetLastError();
TRACE1("The last error code for this thread is %d\n", dwLastError);

Header: afx.h

Community Additions

ADD
Show:
© 2015 Microsoft