admin
  • admin
  • 100% (Exalted)
  • Administration Topic Starter
a year ago
Friday, 07/07/2023 10:03:16
I created an MFC application from visual studio 2008 MFC Application template. The problem is that I want to show a console in execution and not the window created by default MFC Application template ( like the one shown when we choose Win32 Console Application template).
Can anyone please tell me how could ! display a console instead of window in an MFC application?
In your stdafx.h (before vs2019) or pch.h (vs2019) :
#pragma comment(linker, "/entry:WinMainCRTStartup /subsystem:console")
std::cout << "abc" <
tags: debug console
 
Users browsing this topic