We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Decompile to C# in SB-Prime - Checkbox Console App
#3
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:
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();
[-] The following 1 user Likes Scout's post:
  • litdev
Reply


Messages In This Thread
RE: Decompile to C# in SB-Prime - Checkbox Console App - by Scout - 10-16-2024, 09:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)