【正文】
lay debugging messages from a program during development . ? Note: With 32bit MFC, the only way to get debug output is via the debugger. TRACE舉例 ? To print a string argument to your debugger. int x = 1。 float z = 。 TRACE( The value of x is %d\n, x )。 TRACE( x = %d y = %x z = %f\n, x, y, z )。 XXX::Dump(CDumpContextamp。 } Dump舉例 ? 調(diào)用某對(duì)象的 Dump成員函數(shù): ifdef _DEBUG ( afxDump )