0

i have been using several ways to Trace output inside Visual Studio 2008 output window but with no mean, i tried:

   `cout<<"AAAAAAABBBBBBBBBB";

LPCWSTR str=_T("jdhakjsdk");
OutputDebugString(str);

printf("jdhakjshkajshdkjashdk");`

but nothing appears!! is it true that the output window might be locked??

4

1 回答 1

0

不知道为什么你没有得到调试输出(请记住,它OutputDebugString只能在调试模式下工作,并附有调试器)。但是,在 MFC 中,您通常使用TRACE宏:

TRACE(_T("Data: %s\n"), pszData);
于 2012-09-25T07:10:29.503 回答