Код: Выделить всё
#include
#include
#include
DWORD WINAPI Main(LPVOID LPAram) {
// Try to free the console first, if one exists
FreeConsole();
// Allocate a new console window
if (AllocConsole()) {
FILE* pConsole = nullptr;
freopen_s(&pConsole, "CONOUT$", "w", stdout); // Redirect stdout to console
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79509446/unable-to-create-consoleoutput-under-chrome-exe[/url]
Мобильная версия