10-16-2024, 09:02 PM
Here are the results with single-line GW and TW programs:
An error occurs if the program contains a TextWindow command and the "Export as Console" checkbox is not set.
The program cannot provide a console for the text window.
"Export as Console" should therefore only be disabled if you are absolutely sure that the program does not contain a text window command.
If "Export as Console" is enabled, very little changes and could therefore always remain set.
In the project file .csproj, the output type changes from Winexe to Exe:
The following 3 lines are inserted in the main() function:
An error occurs if the program contains a TextWindow command and the "Export as Console" checkbox is not set.
The program cannot provide a console for the text window.
"Export as Console" should therefore only be disabled if you are absolutely sure that the program does not contain a text window command.
If "Export as Console" is enabled, very little changes and could therefore always remain set.
In the project file .csproj, the output type changes from Winexe to Exe:
Code:
<OutputType>Exe</OutputType>
The following 3 lines are inserted in the main() function:
Code:
//Initialise and hide TextWindow for Console App
TextWindow.Show();
TextWindow.Hide();