Posts: 317
Threads: 37
Likes Received:
109 in 86 posts
Likes Given: 214
Joined: Dec 2023
Reputation:
7
04-12-2024, 02:59 PM
(This post was last modified: 04-12-2024, 03:00 PM by z-s.)
Hello everyone
Can we have a full guide about SB Extension Compiler??
And may be we could add intense with this symbol '
I asked this because community was not active from some time .☺
Why beginners don't come here.
why facebook community member don't come here.
Sometime this make me angry.
Hope we will discuss,talk more.
Can we add litdev lib in sb Extension Compiler???
ZS
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
04-13-2024, 08:17 AM
(This post was last modified: 04-13-2024, 10:29 AM by litdev.)
ZS,
Small Basic is great for getting started with programming - a very low initial threshhold to get started and gradually exposes a programmer to major concepts. The simple basic language encourages good programming skills to achieve impressive results within a limited framework.
However, it is limited and C# is probably the best next jump.
The main principal I would suggest is start small and build knowlege slowly. You have many more internet resources (google, youtube, forums) than I ever had, where trial and lots error was the way.
So, first projects:
1] A windows program with one button that you press and it displays "Hello World" back - everyones first program in a new language.
2] A Small Basic extension with one method that adds 2 numbers.
Have a go, google lots (there are resources out there to help with both) and ask questions when stuck - try not to go too far too fast at the start.
PS, Nothing wrong with copying code ideas or public domain code!
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
04-14-2024, 01:15 PM
(This post was last modified: 04-15-2024, 07:23 PM by litdev.)
I made a short video on creating simple SB extension using SharpDevelop. First time doing this kind of thing - needs to be viewed in high res to see text.
Posts: 451
Threads: 34
Likes Received:
359 in 246 posts
Likes Given: 178
Joined: Aug 2023
Reputation:
17
04-16-2024, 05:10 PM
(This post was last modified: 04-16-2024, 07:20 PM by litdev.)
ZS,
I did the SBExtension video because there are some very specifc steps required which are hard to explain without a video.
But there is plenty out there getting started with SharpDevelop, I googled "SharpDevelop youtube" and got loads - some may be better than others for you, but its all there.
Remember its step-by-step. It is not realistic to try to use Scintilla.Net as your first project. I used SmallBasicLibrary as an external dll library in SBExtension video, so its already there!
The code you sent, all method call types must be type Primitive including arguments and other issues - you are trying to do too much too fast!
I am unsure what your objective is. Is it your idea that writing an extension to call C# and run the program in Small Basic will make it easier to do complex stuff like Scintilla? If this is the case, I'm fairly sure the answer is no - do it all in C#. If you are experimenting with C#, again do it all in C# without extension.
If you really are interested in SB extension to call static libraries for its own sake - most libraries are not static and there will be loads of things you can't do calling from SB - then this works, ZCBX279.000. I am nervous giving this example, because I am not going to write extensions for you to do something better done directly in C#.
My advice is to use youtube for SharpDevelop and go slowly, not searching for code fragments and trying to run them.
If your program doesn't compile go back till it does, then try adding a bit at a time. If it compiles but doesn't do what you want, then debug it in SharpDevelop or go back to the last step that did work. You have to go in small incremantal steps, each built on the previous one that worked.
So, first step is "hello world!" program. Step-by-step!