NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 13 14 15 16 17 … 92 Next »
Channel Logo Tool

 
  • 0 Vote(s) - 0 Average
Channel Logo Tool
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#1
2011-07-17, 07:12 PM (This post was last modified: 2011-07-17, 07:20 PM by systemshark.)
Sub,

I'm going to update my channel logo tool to work with NPVR. I've had a bit of a look around the DLLS etc. but I base question.

Am I better to late bind to the NPVR dlls via the Reg key

HKEY_LOCAL_MACHINE\SOFTWARE\NPVR\ or
KEYHKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\NPVR\ (if on a 64bit machine)

Or is there a DLL function call which returns the paths and config etc ?

Thanks
Systemshark
Regards Systemshark
[COLOR="Silver"]
Lounge: HDPC Intel i5, Asus Motherboard with Intel HDMI, 4Gb of Ram, 1Tb Disk, 60Gb SSD, Blackgold BT3595 Tuner, Hauppauge Nova T500 and HVR1700 in a LianLi C39 B Case.

Other Room : Liteon Wireless Media Centre/DVD Player

Software : Windows7 32 Bit, RedRat, XMLTV GUI and NPVR
[/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 97,306
Threads: 681
Joined: Nov 2003
#2
2011-07-17, 07:50 PM
I'm not sure I follow you. What exactly is the problem?
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#3
2011-07-17, 09:42 PM
Hi Sub,

Sorry Crap Question.

I'm actaully after a list of channels. In GBPVR , I did the following steps....
Read RegKey for GBPVR install directory
Read Config.xml for Database source
Open Database
Read out a list of channels.

Now I've seen a couple of functions in the API which appear to do this much quicker.... Channels.GetAll (I think it was)

but can I just open the DLL and execute the function (late binding allows me to connect to DLL without having to package it directly) or do I have to go the long away around. aka read config and open db and get a channels list.
Regards Systemshark
[COLOR="Silver"]
Lounge: HDPC Intel i5, Asus Motherboard with Intel HDMI, 4Gb of Ram, 1Tb Disk, 60Gb SSD, Blackgold BT3595 Tuner, Hauppauge Nova T500 and HVR1700 in a LianLi C39 B Case.

Other Room : Liteon Wireless Media Centre/DVD Player

Software : Windows7 32 Bit, RedRat, XMLTV GUI and NPVR
[/COLOR]
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 37,384
Threads: 744
Joined: May 2006
#4
2011-07-17, 10:30 PM
I have written a few command line utilities (console and GUI) and as long as they run from the Program Files folder I have had no problems with any of the NUtility/NShared API's so far. The only issue was related to setting my compile type to AnyCPU and no x86, the SQLite dll doesn't like that on 64 bit machines.

Martin
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#5
2011-07-17, 11:05 PM
Hi systemshark,

I hope you are well!

Quote:Read RegKey for GBPVR install directory

I wish I had known you had this code already Big Grin

I'm trying to learn some coding at the moment for a config.xml GUI editor for NextPVR and this is one of the methods I have created to read this (actually NextPVR's data directory). It works but could perhaps be pretty rubbish because I have never coded anything before Big Grin

So 'top of head' thinking here (and I'm not sure how you feel about sharing your source code)

Would it not be great to have a repository for NextPVR with access for dev's to see stuff like this? So perhaps not having to re-invent the wheel (and I'm sure in my case re-invent it as square).

cheers

steeb
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 37,384
Threads: 744
Joined: May 2006
#6
2011-07-17, 11:35 PM
Why bother when you can use

NUtility functions like SettingsHelper.GetInstance().GetDataDirectory(); and SettingsHelper.GetInstance().GetInstallDirectory();

Martin
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#7
2011-07-17, 11:39 PM
mvallevand Wrote:Why bother when you can use

NUtility functions like SettingsHelper.GetInstance().GetDataDirectory(); and SettingsHelper.GetInstance().GetInstallDirectory();

Martin

I don't know Martin? I'm not sure how systemshark's tool works code-wise? As for me I am just a beginner and wasn't trying to write anything too clever (and it isn't a plugin). Where are such things as the NUtility functions documented so I could have a look and see if they would help me?

cheers

steeb
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#8
2011-07-17, 11:50 PM
Sorry systemshark, didn't mean to hijack your thread Wink Actually just wanted to know how you were? (hadn't seen you around for a while)

the other bit was just 'top of head' thinking Big Grin

I am a novice when it comes to this coding stuff :o But it is great fun, though sometimes lonely Sad

steeb
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 97,306
Threads: 681
Joined: Nov 2003
#9
2011-07-18, 12:50 AM
systemshark Wrote:Hi Sub,

Sorry Crap Question.

I'm actaully after a list of channels. In GBPVR , I did the following steps....
Read RegKey for GBPVR install directory
Read Config.xml for Database source
Open Database
Read out a list of channels.

Now I've seen a couple of functions in the API which appear to do this much quicker.... Channels.GetAll (I think it was)

but can I just open the DLL and execute the function (late binding allows me to connect to DLL without having to package it directly) or do I have to go the long away around. aka read config and open db and get a channels list.
As Martin said above, you should have no problems referencing NUtility.dll, and calling Channels.GetAll(). You do need to mark your utility as 32bit though, otherwise it'll fail looking for dependencies like SQLite.
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#10
2011-07-18, 08:59 PM
mvallevand Wrote:Why bother when you can use

NUtility functions like SettingsHelper.GetInstance().GetDataDirectory(); and SettingsHelper.GetInstance().GetInstallDirectory();

Martin


Thanks perfect....Thanks for the pointer......
Regards Systemshark
[COLOR="Silver"]
Lounge: HDPC Intel i5, Asus Motherboard with Intel HDMI, 4Gb of Ram, 1Tb Disk, 60Gb SSD, Blackgold BT3595 Tuner, Hauppauge Nova T500 and HVR1700 in a LianLi C39 B Case.

Other Room : Liteon Wireless Media Centre/DVD Player

Software : Windows7 32 Bit, RedRat, XMLTV GUI and NPVR
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 228 2021-03-11, 03:59 PM
Last Post: mvallevand
  What is being sent when using /live?channel=3.1 scJohn 2 681 2020-01-30, 04:51 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 1,440 2019-02-04, 03:09 PM
Last Post: mvallevand
  XMLTV Channel Number Option gdogg371 12 3,510 2018-07-18, 04:32 PM
Last Post: sub
  Channels List by Channel Group Name scJohn 1 1,519 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 1,848 2017-06-19, 09:14 AM
Last Post: psycik
  Getting all channel listings - decimal channel numbers psycik 11 5,194 2015-12-13, 02:17 AM
Last Post: seejaydee
  Channel/ChannelMapping whurlston 4 1,782 2014-04-14, 06:26 PM
Last Post: whurlston
  What causes a new tuner to be used services/live?channel= psycik 2 1,333 2014-02-04, 05:32 PM
Last Post: psycik
  NEWA - using buffer file produced by /public/VLCService?Channel= bgowland 5 1,617 2014-01-02, 06:36 AM
Last Post: bgowland

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

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

Linear Mode
Threaded Mode