09-24-2021 04:23 AM
Hello,
I'm trying to make an application which have 2 modes: commandline if there are some arguments at startup and Graphical only if not.
My problem is that if I dont check "create console application" in "Target Setting", my application create an extra DOS windows to display my output which is not suitable for scripting, and if I check the "create console application" in"Target Setting" I have always an extra (unuseful) DOS windows in graphical mode.
Is there a way to suppress this DOS windows? and leave the Graphical application live?
Best regards,
Serge
09-26-2021 03:11 AM
Is this question related to this other one? Even if it's not, you could try the suggestion given there that may be beneficial
09-27-2021 01:59 AM
Thank you Roberto, You're right, this is exactly the same subject.
But the result is not the one expected,
SetStdioWindowVisibility (FALSE);
do nothing, whatever option I choose (HOST_SYSTEM_STDIO or CVI_STDIO_WINDOW) for SetStdioPort()
The only way I've found is to SetStdioWindowSize (0, 0); to hide the stdio windows.