Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hello developers, I have updated the guides about how to create a plug-in in SMath Studio to be compatible with the latest APIs. Please report any issue so we can keep them updated a copy of both the tutorials and the code of the plug-ins is available in our SVN. Edited by user 09 August 2024 02:43:57(UTC)
| Reason: updated sm (rev3) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
4 users thanked Davide Carpi for this useful post.
|
on 23/12/2016(UTC), on 24/12/2016(UTC), on 24/12/2016(UTC), on 28/12/2016(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 150 Location: Wisconsin Was thanked: 71 time(s) in 45 post(s)
|
Davide, Some minor issues for the vb.net walkthrough; your tutorial was directing us to look for TryEvaluateExpression(value As Entry, context as store, result as entry) as boolean, but I was coming up with (4) parameters instead of just the (3) you indicated, in addition to a different function name: Code:
Public Function ExpressionEvaluation(root As Term, args As Term()(), ByRef context As Store, ByRef result() As Term) As Boolean Implements IPluginLowLevelEvaluation.ExpressionEvaluation
'Throw New NotImplementedException()
End Function
For the purposes of the tutorial, looks like the term 'root as term' replaces the variable 'value as entry'. Nothing serious, but it a curve ball never the less. Thank you for the walkthrough, good resource; gave a great starting point and provided me with a few insights of Visual Studio I was not aware of. -Kenny |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hello Kenny, Glad that you liked it, I've started from this tutorial too (the very first version made by Andrey several years ago) Originally Posted by: Kenn L but I was coming up with (4) parameters instead of just the (3) you indicated, in addition to a different function name this is because you have implemented another interface, IPluginLowLevelEvaluation instead of IPluginLowLevelEvaluationFast; I've documented the latter only because that's the most new, the one you found one day probably will be removed. However there were some other changes in the APIs (SessionProfile), so here we have the updated tutorials TUTORIALS UPDATED- API changes; - msbuild fast deploy (thanks to Martin Kraska for the idea); - minor fixes; Edited by user 13 January 2018 16:55:44(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.