天天看點

兩種輸出調試資訊的方法

1. TRACE

例如:TRACE(_T("success");

   TRACE(_T("%ld",9999);

2. OutputDebugString

例如:OutputDebugString(_T("sucess"));

  Cstring strNum;

  strNum.format(_T("%ld",9999);

  OutputDebugString(strNum);