NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 5 6 7 8 9 93 Next »
Noobie Here!

 
  • 0 Vote(s) - 0 Average
Noobie Here!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,909
Threads: 956
Joined: May 2006
#131
2014-03-29, 10:31 PM
Did you add IEventNotification to the main class list definition

Martin
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#132
2014-03-29, 11:02 PM
I tried that, but I'm working in VB and I suspect that's only for C#?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#133
2014-03-29, 11:11 PM
You can do the same think in VB.NET:

Code:
Class MyClass
    Implements MyInterface
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#134
2014-03-29, 11:15 PM
Error 1 Type 'MyInterface' is not defined.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#135
2014-03-29, 11:21 PM
I didn't mean you to type exactly that. It's just showing the syntax to use.

ie, Class <what-ever-your-plugin-class-is-called> Implements IEventNotification
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#136
2014-03-29, 11:22 PM
Just to be clear... Implement that interface on your plugin class - don't declare some new class.
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#137
2014-03-29, 11:33 PM
I tried the following:
Public Class class1
Implements IEventNotification

Public Class class1 : Implements IEventNotification

This gives me 32 errors where there were none.

Class1 is the only class in my plugin.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#138
2014-03-29, 11:45 PM
Quote:Public Class class1
Did you add this code, or did you already have this code? ie, you absolutely should not have had to add "Public Class class1". All you should have had to add is "Implements IEventNotification" to your existing class
jrockow
Offline

Senior Member

Posts: 713
Threads: 110
Joined: Nov 2005
#139
2014-03-29, 11:51 PM
I did not add the code.
As far as I know, it's been the same since I started with your Test3 sample.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#140
2014-03-29, 11:55 PM
There is no "class1" in the test3 plugin. The plugin class was called "Test3", so the top of your modified plugin would be:
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

using NUtility;
using NUtility.Base;
using NUtility.Controls;

namespace Test3
{
    public class Test3 : NewStyleButtonListPlugin, IPluginConfiguration, IPluginCallback,[b] IEventNotification[/b]
    {
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (17): « Previous 1 … 12 13 14 15 16 17 Next »
Jump to page 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode