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
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
Probleme mit dem Tutorial "How to write a plugin for Media Portal"
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="Xanthophix" data-source="post: 112578" data-attributes="member: 43124"><p>Hallo,</p><p></p><p>ich bin Java-Entwickler und mache gerade meine erste Geh-Versuche mit .NET und orientiere mich an dem Tutorial "How to write a plugin for Media Portal" (<a href="http://mediaportal.sourceforge.net/PluginTutorial/PluginTutorial.htm" target="_blank">http://mediaportal.sourceforge.net/PluginTutorial/PluginTutorial.htm</a>).</p><p></p><p>Nachdem ich endlich alles installiert und mein erstes .NET-Programm kompiliert habe (und das hat gedauert - MS sei dank *Grins*) habe ich ein paar Schwierigkeiten bei dem "OurPlugin"-Bsp. Zuerst sind mir da ein paar Tippfehler im SourceCode aufgefallen: z.B. "using Media Portal.GUI.Library;" statt "using MediaPortal.GUI.Library;" (Leerzeichen)</p><p></p><p>Im Prinzip läuft das Plugin nun - nur der Dialog erscheint noch nicht wenn ich Button1 oder 2 auswähle. Folgender Fehler war im Log zufinden (Ach so, mein Plugin heißt MatthiasPlugin anstelle von OurPlugin):</p><p></p><p>04.07.2005 20:08:08 GUIWindow:OnWindowLoaded id:1 ex<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />er Objekttyp kann nicht zum Zieltyp konvertiert werden. at System.Reflection.RuntimeFieldInfo.InternalSetValue(Object obj, Object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean requiresAccessCheck, Boolean isBinderDefault)</p><p> at System.Reflection.RuntimeFieldInfo.SetValue(Object obj, Object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture)</p><p> at MediaPortal.GUI.Library.GUIWindow.OnWindowLoaded()</p><p>04.07.2005 20:08:09 OnMessage exception<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />ystem.InvalidCastException: Die angegebene Umwandlung ist ungültig.</p><p> at MatthiasPlugin.Class1.OnButtonTwo()</p><p> at MatthiasPlugin.Class1.OnClicked(Int32 controlId, GUIControl control, ActionType actionType)</p><p> at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)</p><p>04.07.2005 20:08:12 OnMessage exception<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />ystem.InvalidCastException: Die angegebene Umwandlung ist ungültig.</p><p> at MatthiasPlugin.Class1.OnButtonOne()</p><p> at MatthiasPlugin.Class1.OnClicked(Int32 controlId, GUIControl control, ActionType actionType)</p><p> at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)</p><p></p><p>Liegt das eventuell an einer "kaputten" CVS-Version die ich gezogen habe, oder mache ich einfach was anderes falsch?</p><p></p><p>Ich würd mich über Hilfe freuen!</p><p></p><p>Vielen Dank!</p></blockquote><p></p>
[QUOTE="Xanthophix, post: 112578, member: 43124"] Hallo, ich bin Java-Entwickler und mache gerade meine erste Geh-Versuche mit .NET und orientiere mich an dem Tutorial "How to write a plugin for Media Portal" ([url]http://mediaportal.sourceforge.net/PluginTutorial/PluginTutorial.htm[/url]). Nachdem ich endlich alles installiert und mein erstes .NET-Programm kompiliert habe (und das hat gedauert - MS sei dank *Grins*) habe ich ein paar Schwierigkeiten bei dem "OurPlugin"-Bsp. Zuerst sind mir da ein paar Tippfehler im SourceCode aufgefallen: z.B. "using Media Portal.GUI.Library;" statt "using MediaPortal.GUI.Library;" (Leerzeichen) Im Prinzip läuft das Plugin nun - nur der Dialog erscheint noch nicht wenn ich Button1 oder 2 auswähle. Folgender Fehler war im Log zufinden (Ach so, mein Plugin heißt MatthiasPlugin anstelle von OurPlugin): 04.07.2005 20:08:08 GUIWindow:OnWindowLoaded id:1 ex:Der Objekttyp kann nicht zum Zieltyp konvertiert werden. at System.Reflection.RuntimeFieldInfo.InternalSetValue(Object obj, Object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean requiresAccessCheck, Boolean isBinderDefault) at System.Reflection.RuntimeFieldInfo.SetValue(Object obj, Object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture) at MediaPortal.GUI.Library.GUIWindow.OnWindowLoaded() 04.07.2005 20:08:09 OnMessage exception:System.InvalidCastException: Die angegebene Umwandlung ist ungültig. at MatthiasPlugin.Class1.OnButtonTwo() at MatthiasPlugin.Class1.OnClicked(Int32 controlId, GUIControl control, ActionType actionType) at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message) 04.07.2005 20:08:12 OnMessage exception:System.InvalidCastException: Die angegebene Umwandlung ist ungültig. at MatthiasPlugin.Class1.OnButtonOne() at MatthiasPlugin.Class1.OnClicked(Int32 controlId, GUIControl control, ActionType actionType) at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message) Liegt das eventuell an einer "kaputten" CVS-Version die ich gezogen habe, oder mache ich einfach was anderes falsch? Ich würd mich über Hilfe freuen! Vielen Dank! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
Probleme mit dem Tutorial "How to write a plugin for Media Portal"
Contact us
RSS
Top
Bottom