I am very new to C++ so this question might be silly. But when I try to allocate a new console in my dll like this
AllocConsole(); FILE* f; freopen_s(&f,