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
ZS Extension.
#41
ZS,

You are using no namespace for recent classes, best to stick with ZS namespace in future.

Platform would run .Net static or instantiated methods, assuming arguments can be coverted from Primitive.  There are bugs in the argument List handling.

Debug this, that I would expect to work:

Code:
Stack.PushValue("args",2024)
Stack.PushValue("args",7)
daysInJuly = ZSPlatform.InvokeStaticMethod("System.DateTime","DaysInMonth","args")
TextWindow.WriteLine(daysInJuly)
[-] The following 1 user Likes litdev's post:
  • z-s
Reply
#42
I will update soon and change the namespace.
ZS
Reply
#43
New Release : https://github.com/zs-3/ZS/releases/tag/1.2.1.0
This Is The Most Latest And Stable Release Now I Will Be Focusing On Writing Samples Of Extension
ZS
[-] The following 1 user Likes z-s's post:
  • AbsoluteBeginner
Reply
#44
Uploaded to EM, Good work!

Please just put the dll and xml in the top level of the zip, not inside sub folders so EM can expect them to be called the same thing in the same place for each version.

PS, ZSProcessInfo is not in ZS namespace, you can also use [HideFromIntellisense] directive for any class/method that you want to hide - work in progress, depreciated etc.  For eaxmple ZSPlatform.InvokeStaticMethod can't do the Primitive argument type casting which you would still need to figure out.
[-] The following 1 user Likes litdev's post:
  • z-s
Reply
#45
Thanks For Help.
i will be updating the namespace in next update.

i cant wait so fixed namespace put hidefromintellisense and added 4 new methods.
New Release : https://github.com/zs-3/ZS/releases/tag/1.2.1.1
ZS
[-] The following 1 user Likes z-s's post:
  • litdev
Reply
#46
litdev could you help me how to fire a sub without registering it to event through a method in csharp.
ZS
Reply
#47
(08-03-2024, 04:41 PM)z-s Wrote: litdev could you help me how to fire a sub without registering it to event through a method in csharp.

Look at the code in LDCall.Func
Reply
#48
Hii Litdev

You could see that in my extension till now there is no functions for GW as I can understand how to draw shapes on graphic window through WPF.
And litdev extension source code very though to understand.

Could you explain me how I can use WPF function on graphicwindow in csharp
ZS
Reply
#49
First learn how to draw shapes etc using WPF without doing it on GraphicsWindow. 

Its much harder through the extension since SmallBasicLibrary needs to be interacted with through reflection.

First step - create a simple WPF application and learn how to drow on the window
Second step - read up a bit on reflection
Thirst step - see how these come together in LitDev or FC extensions

You will have to work on these first.
[-] The following 1 user Likes litdev's post:
  • z-s
Reply
#50
I will follow it thanks
ZS
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)