|first of all, it seems that you don't exactly know what you're talking about :
duta wrote:in a MFC win32 application
even though MFC is built upon Win32, an application is either MFC or Win32, not both.
moreover, even though it is possible to have a console in a MFC program, it is a framework designed for window oriented applications.
so to reply, but not to you exact question, you still can always use the C++ mechanisms to output to the standard stream :
std::cout << "Hello World !";