NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 41 42 43 44 45 … 93 Next »
General Plug-in programming question

 
  • 0 Vote(s) - 0 Average
General Plug-in programming question
skate15e
Offline

Member

Posts: 100
Threads: 16
Joined: Oct 2006
#1
2007-06-19, 03:20 AM
Gents,

I am trying to write a plug-in to output data to the IMON VFD. The API they provide includes a c++ header file. I am trying to write the plug-in in c#. Can I use the header file in c# and if so, what is the syntax. Or can I write a plug-in in c++? How do I implement the IMenuTask then?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2007-06-19, 03:29 AM
if you google for "dllimport" you should find examples of how to call functions in DLLs.
skate15e
Offline

Member

Posts: 100
Threads: 16
Joined: Oct 2006
#3
2007-06-20, 12:02 AM
thanks, that was fast. seems to be working
skate15e
Offline

Member

Posts: 100
Threads: 16
Joined: Oct 2006
#4
2007-06-21, 03:50 AM
I am writing a plug-in to display GBPVR info on the iMON VFD (for now, if I can get it working I would like to add functionality for other LCDs). I have a few questions however...How can I get info on the currently playing video/recording/cd and is there an event I can look for to know when GBPVR is playing on of these files. Also, is there an event to look for when there is active recording occuring? I am new to C# and feeling my way through the code as well as learning the GBPVR interface. Thanks for the help.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2007-06-21, 04:31 AM
If you do a forum search for IEventNotification you should find some info. Plugins that implement this interface will be notified of events like current music track, current video file, current channel etc. No events about recordings though.
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#6
2007-07-07, 04:09 PM
I wrote a imon Vfd plugin myself in c#, using DLL-import. I didn't post the plugin, but you can have the source-code if you want to.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2007-07-07, 04:53 PM
I'd be interested in seeing the DLL imports you used. I've now got an imon vfd in my machine, but didnt find time to get it working yet.
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#8
2007-07-27, 06:00 PM
Try this:

using System.Runtime.InteropServices;

.....

[DllImport("SG_VFD.dll", EntryPoint="iMONVFD_Init")]
private static extern bool VfdOpen(int vfdType, int resevered);

[DllImport("SG_VFD.dll", EntryPoint="iMONVFD_Uninit")]
private static extern void VfdClose();

[DllImport("SG_VFD.dll", EntryPoint="iMONVFD_IsInited")]
private static extern bool VfdIsOpen();

[DllImport("SG_VFD.dll", EntryPoint="iMONVFD_SetText")]
private static extern bool VfdSetText(string firstLine, string secondLine);
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#9
2007-07-27, 06:21 PM
Thanks, but I found some time last week and got it going.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web API only_new Question Gazavant 6 2,582 2021-04-04, 06:54 PM
Last Post: sub
  Another Artwork question scJohn 15 8,035 2019-09-10, 05:33 PM
Last Post: nonob
  WEB API GuidService/Listing question(s) scJohn 6 4,215 2017-08-09, 02:18 PM
Last Post: scJohn
  skin question pBS 2 3,304 2016-06-18, 07:03 PM
Last Post: pBS
  Another SQL question bgowland 15 7,143 2014-05-21, 08:09 AM
Last Post: bgowland
  Any ideas about programming for Windows Firewall? bgowland 4 5,543 2014-04-10, 09:05 AM
Last Post: bgowland
  Timing.Info question mvallevand 2 2,045 2013-04-19, 03:54 AM
Last Post: mvallevand
  N-PVR db3 EPG_EVENT time format question bgowland 3 2,060 2011-03-12, 05:26 AM
Last Post: bgowland
  Ping UncleJohnsBand (question about npvr soap) ioan 2 2,007 2011-02-18, 01:12 AM
Last Post: UncleJohnsBand
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,810 2011-02-17, 08:46 AM
Last Post: McBainUK

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

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

Linear Mode
Threaded Mode