Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 78

Thread: Plugins and NPVR. Where do we start?

  1. #61
    Join Date
    Aug 2014
    Location
    US, Louisiana
    Posts
    188
    I'm looking for the sample plugin zip files but can't seem to locate them, where can I get them from? Thanks!
    Chris


    Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
    Two Silicondust HD Prime CC capture, 6 tuners total
    Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
    Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
    NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)



  2. #62
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    90,310
    Here is the most relevant sample.
    Attached Files Attached Files

  3. #63
    Join Date
    Aug 2014
    Location
    US, Louisiana
    Posts
    188
    Quote Originally Posted by sub View Post
    Here is the most relevant sample.
    Thanks, now comes the fun part, seeing if I can translate it to VB from C#. If I get it working, I'll post it for those who use VB.
    Chris


    Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
    Two Silicondust HD Prime CC capture, 6 tuners total
    Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
    Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
    NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)



  4. #64
    Join Date
    Aug 2014
    Location
    US, Louisiana
    Posts
    188
    Ok, the C# project is complaining it can't find the NUtility project. The using clauses for NUtility are erred as would be expected, so I tried adding a reference the the DLL in the NPVR directory for both NUtility and NShared, didn't fix it. Any ideas why?

    One more question, when you start a project for a new plugin, what type of project to you select? I would think Class Library but I'm not sure. I ask because translating the code is the simple part, there's a utility out on the web that does it for me but it doesn't convert project files.

    Appreciate any help you could give.

  5. #65
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    90,310
    Ok, the C# project is complaining it can't find the NUtility project. The using clauses for NUtility are erred as would be expected, so I tried adding a reference the the DLL in the NPVR directory for both NUtility and NShared
    Yes, you'd need to do that. The locations of NUtility.dll and NShared.dll are different on my development machine, so you need to point them to these DLLs on your machine.

    didn't fix it. Any ideas why?
    No, not really. What exactly does it say?

    One more question, when you start a project for a new plugin, what type of project to you select? I would think Class Library but I'm not sure.
    Yes, the plugins are a Class Library.

  6. #66
    Join Date
    Aug 2014
    Location
    US, Louisiana
    Posts
    188
    Quote Originally Posted by sub View Post
    Yes, you'd need to do that. The locations of NUtility.dll and NShared.dll are different on my development machine, so you need to point them to these DLLs on your machine.

    No, not really. What exactly does it say?
    When I select NUtlity from the programs directory as shown in the first screen shot and click ok, the red underline error indicators don't clear. I go back in to add reference again and the box is unchecked. But if I check NShared it stays checked.
    Attached Images Attached Images   

  7. #67
    Join Date
    Aug 2014
    Location
    US, Louisiana
    Posts
    188
    Ok, I created a empty class project and added the translated files and a reference to NUtility that stayed checked and I've got it down to a total of 6 errors. I'm not done diggin into the erros but am hoping someone out there has seen the errors and knows how to resolve them so I don't have to reinvent the wheel
    Attached Images Attached Images  

  8. #68
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    90,310
    I think whatever C# -> VB.NET translator you passed the code through, hasn't got it quite right.

    You'll probably need to post the code it generated for me to have chance at helping you with those remaining errors. I'm guessing there is only a few small issues.

  9. #69
    Join Date
    Aug 2014
    Location
    US, Louisiana
    Posts
    188
    Appreciate the help on it
    Attached Files Attached Files
    Chris


    Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
    Two Silicondust HD Prime CC capture, 6 tuners total
    Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
    Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
    NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)



  10. #70
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    90,310
    I'm not going to have much time today, but I'll try give pointers on a couple of these.

    On the first error, about event Load, I think you need to delete the "Me.Load += New System.EventHandler(Me.SettingsForm_Load)" line entirely, and instead make sure the method declaration includes:

    Private Sub SettingsForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •