Thanks for reply.
I just want to test afxDump, so I created a console project with MFC support, in my main function, I just put the following line:
afxDump << "Messages";
and I can not find the anything in the debug window.
The project was built with Win32 Debug configuration, so...