   simple MFC problem
  i am a beginner ,in Win32 console Application,i can have console window to REALTIME monitor the change of some data by "printf" of this data.but with MFC AppWizard(exe) ,i can't not do this (No console window for me to do it).... (VC6 )can anyone help me? thx   
  You should be able to set the subsystem to CONSOLE (under the project's linker settings), and then override MFC's WinMain.  I came up with this by copying MFC's WinMain function and modifying it, and then stuck it in it's own main.cpp file.  It seems to work...but be aware that this is probably the 3rd MFC I've ever compiled in my life and it could easily cause some kind of very weird problem that I'm not aware.int main( int argc, char* argv[] ){int nReturnCode = -1;CWinThread* pThread = AfxGetThread();CWinApp* pApp = AfxGetApp();// AFX internal initializationif (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL))goto InitFailure;// App global initializations (rare)if (pApp != NULL && !pApp->InitApplication())goto InitFailure;// Perform specific initializationsif (!pThread->InitInstance()){if (pThread->m_pMainWnd != NULL){TRACE(traceAppMsg, 0, "Warning: Destroying non-NULL m_pMainWnd\n");pThread->m_pMainWnd->DestroyWindow();}nReturnCode = pThread->ExitInstance();goto InitFailure;}nReturnCode = pThread->Run();InitFailure:#ifdef _DEBUG// Check for missing AfxLockTempMap callsif (AfxGetModuleThreadState()->m_nTempMapLock != 0){TRACE(traceAppMsg, 0, "Warning: Temp map lock count non-zero (%ld).\n",AfxGetModuleThreadState()->m_nTempMapLock);}AfxLockTempMaps();AfxUnlockTempMaps(-1);#endifAfxWinTerm();return nReturnCode;}Also, be aware that you can simply redirect printf's to a file if you want.std::freopen("stdout.txt", "w", stdout);std::freopen("stderr.txt", "w", stderr);