NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 45 46 47 48 49 … 93 Next »
Visual Express versions

 
  • 0 Vote(s) - 0 Average
Visual Express versions
JDeSimone
Offline

Junior Member

Posts: 20
Threads: 6
Joined: Nov 2006
#1
2006-12-07, 09:01 AM
Is anyone using the express versions of VB or C#/C++ to write plugins for GBPVR? I was interested in trying to learn but not enough interest to justify paying hundreds of dollars for a developement platform.:o

TIA

Joe D.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2006-12-07, 09:07 AM
I'm using Visual C# express here. I've actually got a copy of VS 2005 and VS 2003 but like the simplicty of the express (and the low disk space requirements).

Also make sure you check out the C# MSDN docs, lots of useful info and examples.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2006-12-08, 12:38 PM
Does anyone know how to set Visual C# Express to debug mode with the GBPVR.exe ??
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#4
2006-12-12, 09:14 AM
I just downloaded the MS Visual C# Express edition and have successfully got it to compile and debug the HelloWorldPlugin (with some modifications to make it work).

Once I got the environment downloaded and installed, I did the following to get the Plugin complied and debugged:

1) Walked thru the tutorial found at: http://prdownloads.sourceforge.net/gbpvr...f?download

2) Made minor modifications to the code
- needsRendering() : return false
- OnKeyDown():
if (e.KeyCode == Keys.Escape) {
PluginHelperFactory.getPluginHelper().ReturnToMainMenu();
}
return true ;
- getTaskImage() : return null;
- Activate() : comment out throw
- Deactivate() : comment out throw
- GetConfigFormInstance() : return null

--- This allowed me to compile and run the plugin successfully

To debug,
1) Tools-->Options.
2) Click 'Show All Settings'
3) Projects and Solutions (General)
- click show advanced build configurations
4) I had to add some settings to the project file
[INDENT](in my case d:\GBPVR_Development\HelloWorldPlugin2\HelloWorldPlugin2.csproj.user see attached file)[/INDENT]
5) I changed the output of the DLL to the GBPVR plugin directory, set some breakpoints and stepped thru the code!!

Although I have been programming for some time, I am very new to C#, and the GBPVR environment, so there may be better ways of getting this setup to work...

Good luck!
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#5
2006-12-12, 09:56 AM
JavaWiz, you're a legend - and it's only your 2nd post!

Looking at the project file you attached I worked out I was missing these config lines:
<StartAction>Program</StartAction>
<StartProgram>C:\Program Files (x86)\devnz\gbpvr\GBPVR.exe</StartProgram>

Many thanks (and welcome to GB-PVR)
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#6
2006-12-15, 04:14 PM
McBainUK,

just watch out the installers from the express editions, I orginially wrote all of CLT in the C# Express edition, it was the installer which was completely useless.... it did strange things like, you cann't define the installation folder or shell to another installer.... hence why I swapped to VS2005 full version...
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]
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#7
2007-03-26, 10:44 AM (This post was last modified: 2007-03-26, 11:17 AM by Wakalaka.)
I'm using VS 2005 full version, tried the above, plus tried Attach Process when debugging my plugin DLL, but never hit my breakpoints. I should know how to solve this, done it before, but shouldn't be trying to do this at 3:45 AM Smile
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Latest Versions jrockow 5 2,344 2020-04-29, 10:46 PM
Last Post: sub
  Version control / repository software for VS Express bgowland 2 2,386 2014-05-02, 09:57 PM
Last Post: bgowland
  Visual Studio C# 2008 Express needs registration bgowland 2 3,562 2011-11-22, 10:23 PM
Last Post: bgowland
  Source code for older versions ? Spark 1 1,740 2011-02-23, 01:19 AM
Last Post: sub
  Visual Studio (Express) 2008 JavaWiz 10 3,778 2008-04-05, 06:13 AM
Last Post: bgowland
  Need help, using VB 2005 Express and Access TOM22 1 1,327 2007-09-23, 06:29 AM
Last Post: Ommina
  Using Visual Studio to debug running Plugins mkenyon2 3 2,083 2007-07-04, 06:52 PM
Last Post: McBainUK
  Installers for Plugins - Visual Studio Setup Projects? psycik 2 1,380 2007-04-28, 01:23 AM
Last Post: -Oz-
  Calender plugin - Early versions feedback thread McBainUK 44 12,136 2007-03-28, 10:14 PM
Last Post: McBainUK
  Configure a C# express project to launch an external exe McBainUK 3 1,802 2006-12-12, 05:01 PM
Last Post: Brian_W

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

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

Linear Mode
Threaded Mode