04-14-2024, 06:36 AM
(This post was last modified: 04-16-2024, 04:47 AM by stevantosic.)
z-s
Let's suppose that files SmallBasicLibrary.dll and Turtle1.cs (created in Notepad++ for example) are in your working directory.
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
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