Pages: 1 2 3 4 5 6 7 8 9 10 11
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)
I will update soon and change the namespace.
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.
litdev could you help me how to fire a sub without registering it to event through a method in csharp.
(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
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
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.
Pages: 1 2 3 4 5 6 7 8 9 10 11