I have code to make a screenshot, but here is what my program produces:
My program's console pops up and gets in the way. This is a split-second pop-up as the program takes the screen shot the split-second you double-click it.
I did some searching for information for how to hide it, and found a forum with the following recommendation:
change the application type from "console" to "GUI application" in the target options (project properties -> tab "build targets").
But setting it to GUI application didn't get rid of the split-second console.
I tried looking for code to hide the console with, and found an example:
HWND hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_HIDE );
However, writing code to hide the console still has the console pop up and block the screenshot in the split second it appears.
What can I do to stop the console from appearing in that split second? I'm not bothered if the console is simply minimised, so long as it doesn't block the shot.