Monday, December 31, 2012

VCPP Note

1. Trace will have output only when you run the project with "Start Debuging" no matter it is debug or release version.

Trace can not support Chinese Chars, to output Chinese chars, using OutputDebugString instead Trace. e.g.

TRACE(_T("CEx07cView::OnGoodBye %x,%lx\n"),wParam,lParam);

CString test;

test.Format(_T("Dialog edit1 contents = %s\n"),m_pDlg->m_strEdit1);

OutputDebugString(test);

No comments:

Post a Comment