I have a third-party dll that I load into software that isn\'t mine, and I\'m using AllocConsole() to create the standard windows CLI window so I have an easy means of outpu
This is what I use.
FILE *file = nullptr; freopen_s(&file,"CONIN$", "r", stdin); freopen_s(&file, "CONOUT$", "w", stdout);
Just hopes this helps someone.