home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Plugin for Napster with SOAP
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="samuel337" data-source="post: 4807" data-attributes="member: 10347"><p>No problems, MP plugins can be written in all of the .NET languages, including VB.NET. There are some minor downsides though. One is that some of the subroutine names that frodo has used in the interface description may interfere with VB.NET's keywords. The key example is in the Non-GUI plugin interface, where frodo has a Stop sub, but as Stop is a VB.NET keyword, you have to use [Stop] to tell VB.NET not to recognise it as a keyword.</p><p></p><p>The other thing is that VB.NET doesn't support operator overloading. This shouldn't be a problem, but I think frodo has used some here and there so you may have issues. Operator overloading is where you define a custom class, and you specify how the + or - or other operators work in relation to your class, e.g.</p><p></p><p>If there is a class in MP called MPClass and you want to add another instance of MPClass to it, you can't do MPClass += anotherInstanceOfMPClass as you can in C#. It will only work if frodo has coded in a workaround, e.g. MPClass.Add(anotherInstanceOfMPClass).</p><p></p><p>I hope this doesn't deter you - if I was more knowledgable in VB.NET, I would write the plugin in VB.NET rather than C#. The minor problems are easily worked around.</p><p></p><p>HTH</p><p></p><p>Sam</p></blockquote><p></p>
[QUOTE="samuel337, post: 4807, member: 10347"] No problems, MP plugins can be written in all of the .NET languages, including VB.NET. There are some minor downsides though. One is that some of the subroutine names that frodo has used in the interface description may interfere with VB.NET's keywords. The key example is in the Non-GUI plugin interface, where frodo has a Stop sub, but as Stop is a VB.NET keyword, you have to use [Stop] to tell VB.NET not to recognise it as a keyword. The other thing is that VB.NET doesn't support operator overloading. This shouldn't be a problem, but I think frodo has used some here and there so you may have issues. Operator overloading is where you define a custom class, and you specify how the + or - or other operators work in relation to your class, e.g. If there is a class in MP called MPClass and you want to add another instance of MPClass to it, you can't do MPClass += anotherInstanceOfMPClass as you can in C#. It will only work if frodo has coded in a workaround, e.g. MPClass.Add(anotherInstanceOfMPClass). I hope this doesn't deter you - if I was more knowledgable in VB.NET, I would write the plugin in VB.NET rather than C#. The minor problems are easily worked around. HTH Sam [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Plugin for Napster with SOAP
Contact us
RSS
Top
Bottom