| |||||||
| Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest
Posts: n/a
| Frodo There is a problem with the implementation of NON-GUI plugins. If you want to write a plug-in using VB.NET (as I was just starting), the "Stop" interface is a bit of a problem ... Public Sub Stop() Implements Mediaportal.GUI.Library.IPlugin.Stop Microsoft.VisualBasic.Interaction.MsgBox("Ben's plugin stopped.") End Sub Stop is a keyword in vb.net and the compiler throws an exception ("Keyword is not valid as an identifier"). Ends up that you can't implement the stop interface, which is required, and therefore can't write a plugin ![]() Can we change it to "Finish" or "Cleanup"? Perhaps even make it optional? Ben BTW - you guys do great work. |
|
| | #2 (permalink) |
| Portal Member Join Date: Aug 2004 Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts
| Try enclosing the Stop word in square brackets, like this [Stop] , whenever you don't want VB.NET to recognise it as a keyword. So try this: Public Sub [Stop]() Implements Mediaportal.GUI.Library.IPlugin.Stop Microsoft.VisualBasic.Interaction.MsgBox("Ben's plugin stopped.") End Sub HTH Sam |
| | |
![]() |
| Bookmarks |
| Tags |
| interface, nongui, plugin, vbnet |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anyone else having a problem with the Zap2It plugin? | inXorable | General Talk | 6 | 2007-01-21 03:41 |
| mediaportal crash after tv setup in settings/setup wizard | zimmerkid | Codecs, External Players | 1 | 2007-01-18 06:17 |
| Problem with tv-engine mediaportal plugin | youngpro | Get Support | 3 | 2007-01-05 23:47 |
| Problem with AvertMedia USB and MediaPortal | 86jacob | General Support | 0 | 2006-09-23 08:38 |
| Plugin interface | Anonymous | Plugins | 13 | 2004-09-15 18:25 |