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
SB Extension Compiler
#5
z-s

Let's suppose that files SmallBasicLibrary.dll and Turtle1.cs (created in Notepad++ for example) are in your working directory.

Code:
// Turtle1.cs
using Microsoft.SmallBasic.Library;

class Program
{
    static void Main(string[] args)
    {
        Turtle.Speed = 9;
        Turtle.Show();
        Turtle.PenUp();
        Turtle.Move(100);
        Turtle.TurnRight();
    }

Compile it from command line using C# compiler (see link one of Litdev's earlier post).
This means, paste line:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /r:SmallBasicLibrary.dll Turtle1.cs

into command line of your directory. After compiling, you should see Turtle1.exe file.

Then run it from command line: 
Turtle1
 
st
[-] The following 1 user Likes stevantosic's post:
  • litdev
Reply


Messages In This Thread
SB Extension Compiler - by z-s - 04-12-2024, 02:59 PM
RE: SB Extension Compiler - by litdev - 04-12-2024, 03:37 PM
RE: SB Extension Compiler - by z-s - 04-13-2024, 05:45 AM
RE: SB Extension Compiler - by litdev - 04-13-2024, 08:17 AM
RE: SB Extension Compiler - by stevantosic - 04-14-2024, 06:36 AM
RE: SB Extension Compiler - by litdev - 04-14-2024, 01:15 PM
RE: SB Extension Compiler - by z-s - 04-15-2024, 06:59 AM
RE: SB Extension Compiler - by z-s - 04-16-2024, 04:08 PM
RE: SB Extension Compiler - by litdev - 04-16-2024, 05:10 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)