Plugin writing with MSVC++ 6.0

Help each other out

Plugin writing with MSVC++ 6.0

Postby P3rv3rt B3ar on Mon May 01, 2006 4:33 pm

Anybody using MSVC++ 6.0 for plugin writing? is it possible to interface with this legacy IDE to XpluginSDK? or should i just give up trying until i can afford to update my IDE?
P3rv3rt B3ar
 
Posts: 1367
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland

Postby Atlas on Tue May 02, 2006 2:47 am

I'm not sure. But you can download the VS Express editions for .NET 2.0 for free from Microsoft. I used the C# one for my netflix plugin with no problems. They have a C++ one also. You do have to register with Microsoft to keep it running after 30 days. Just don't have to pay them anything.

http://msdn.microsoft.com/vstudio/express/default.aspx
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

Postby P3rv3rt B3ar on Mon May 15, 2006 6:44 am

Thanx man, i finally tried and dl'ed c# 2005... and my test file is turning to dll so sweet.... im just trying to set name, description, type and status, so that they would appear on plugin tab on setup dialog in xlobby...

but i have nothing there... i copy freshly made dll to plugin directory, i inherit my class from XPlugin, implement all functions which are defined in XPlugin interface as dummies (except those four, which return test string values, compiler complains if i leave some out, so should work right), included XPluginSDK in dependencies... I just dont get what im missing... help?

EDIT : Oh and i tried same with xstats with similar results...
P3rv3rt B3ar
 
Posts: 1367
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland

Postby Atlas on Tue May 16, 2006 4:29 am

Which xlobby exe are you using? I haven't tried the latest screentest exe yet. I'll download it and try. Also I have created a template so that when I select "Create New Project", I can choose a Xlobby plugin. Essentially it is just one .cs file with all the functions. Sounds like you have everything. Did you define the xhelper?
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

Postby Atlas on Tue May 16, 2006 4:44 am

Didn't have any probs with the screentest exe. I've included my .cs file that I use as a template....FYI "Export Template" after you have created a project. Saves time for the next plugin you write. This is just my way. Several ways to skin a cat! :D

Code: Select all
using System;
using System.Windows.Forms;
using System.Collections;
using System.Text;
using XPluginSDK;

namespace Xlobby_Plugin1
{
   public class MyXlobbyPlugin : XPlugin
   {

      private const string PLUGIN_NAME = "XPlugin1";
      private const string PLUGIN_TYPE = "Movies";
      private const string PLUGIN_DESCRIPTION = "My Xlobby Plugin";

      private XPluginHelper xHelper;
      private string xStatus = "Starting";

      #region XPlugin Members

      public void Execute(string command)
      {

      }

      public ArrayList GetCommands()
      {
         ArrayList pluginCommands = new ArrayList();
         return pluginCommands;
      }

      public string GetDescription()
      {
         return PLUGIN_DESCRIPTION;
      }

      public string GetName()
      {
         return PLUGIN_NAME;
      }

      public string GetPluginType()
      {
         return PLUGIN_TYPE;
      }

      public string GetStatus()
      {
         return this.xStatus;
      }

      public Object GetVariable(string name)
      {
         return "Variable Result";
      }

      public void SetHelper(XPluginHelper xhelper)
      {
         this.xHelper = xhelper;
      }

      public void ShowDialog()
      {

      }

      #endregion
   }
}
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

Postby P3rv3rt B3ar on Sat May 27, 2006 8:06 pm

Atlas wrote:Which xlobby exe are you using?
¨

That turned out to be the problem... i was using ancient one. got it working now. thanx man.
P3rv3rt B3ar
 
Posts: 1367
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland

Postby P3rv3rt B3ar on Wed Jul 26, 2006 4:13 am

Gotta thank u for these tips once more. Without your help xPerT wouldnt have ever been built.
P3rv3rt B3ar
 
Posts: 1367
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron