【正文】
XXX::Dump(CDumpContextamp。 } 調(diào)試宏: TRACE ? To print or display 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。 ? ASSERT(表達(dá)式 ) ASSERT(div!= 0)。 異常處理機(jī)制 ? 分析程序運行時可能出現(xiàn)的異常情況 ? 除數(shù)為零 ? 內(nèi)存空間不夠 ? 文件無法打開 ? 數(shù)據(jù)類型錯誤