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
#9
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!
[-] The following 1 user Likes litdev's post:
  • z-s
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: 1 Guest(s)