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
#2
Try exporting as a console app - this just means that it can use the TextWindow as a Console - it will also be able to use the GraphicsWindow.  I did test for the C# export with a simple TW and GW case using an extension before I posted on the other thread and my very simple case did work, something like:

Code:
TextWindow.WriteLine("Hello World")
LD3DView.AddView(GW.Width,GW.Height,"True")

The error message looked like it was getting null back from the TextWindow call when a key was pressed.  Not quite sure how your program works, but exported C# appears to work for me when exported as Console - if I remember there was some funny use of the console to commicate with chess engine or maybe that was something different.  If there are any actions I need to do with the program to make it fail, then please let me know.
[-] The following 1 user Likes litdev's post:
  • Scout
Reply


Messages In This Thread
RE: Decompile to C# in SB-Prime - Checkbox Console App - by litdev - 10-15-2024, 04:46 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)