We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before you exit a program with an attached console you should
Example:
bool consoleAttached = false; // Use command line processing instead FILE* f1 = NULL, * f2 = NULL, * f3 = NULL; if (AttachConsole(ATTACH_PARENT_PROCESS)) { f1 = freopen("CONIN$", "r", stdin); f2 = freopen("CONOUT$", "w", stdout); f3 = freopen("CONOUT$", "w", stderr); consoleAttached = true; } int result = run(); if (consoleAttached) { fclose(f1); fclose(f2); fclose(f3); keybd_event(VK_RETURN, VK_RETURN, 0, 0); FreeConsole(); } return result;
The text was updated successfully, but these errors were encountered:
85a0f2a
Fixed! Thanks.
Sorry, something went wrong.
No branches or pull requests
Before you exit a program with an attached console you should
Example:
The text was updated successfully, but these errors were encountered: