Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
TRACE Macro
                                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  TRACE( exp );
 
  Parameter   Description
 
  <exp>       A variable number of arguments used exactly in the same way
              as the run-time function printf uses them.
 
  Remarks
 
  In the Debug environment, the TRACE macro output goes to afxDump. In the
  Release environment, it does nothing. This is a convenient way of
  generating debugging output that will appear only in the Debug version
  of your program.
 
  Example
 
  int i = 1;
  char sz[] = "one";
  TRACE( "Integer = %d, String = %s\n", i, sz );
  // Output: 'Integer = 1, String = one'
 
 
 
                                     -♦-