Tutorials about how to create a plug-in

Tutorials about how to create a plug-in - C#, VB.NET, Visual Basic, Visual Studio - Сообщения

#1 Опубликовано: 23.12.2016 14:51:48
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

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.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 пользователям понравился этот пост
Вячеслав Мезенцев 23.12.2016 15:53:00, NDTM Amarasekera 23.12.2016 21:35:00, frapuano 24.12.2016 06:22:00, Alexander O. Melnik 28.12.2016 10:12:00
#2 Опубликовано: 12.01.2018 13:10:56
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: User

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:

   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

"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#3 Опубликовано: 12.01.2018 22:06:10
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Hello Kenny,

Glad that you liked it, I've started from this tutorial too (the very first version made by Andrey several years ago)

Wrote

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;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Опубликовано: 08.08.2024 19:14:03
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

UPDATED
- API changes;



If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
⚜ Kenny Lemens, P.E. ᵂᴵ 08.08.2024 20:57:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений