LcdStudio.Com Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
DataPlugin SDK Quickstart
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Reply to topic    LcdStudio.Com Forum Index » SDK View previous topic
View next topic
DataPlugin SDK Quickstart
Author Message
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3336

Post Reply with quote
Please stop cross posting, really I read most posts and have answered in one of the other threads.
Sun Mar 19, 2006 3:27 pm View user's profile Send private message Send e-mail Visit poster's website
pseudo



Joined: 13 Mar 2006
Posts: 7
Location: Porto - Portugal

Post Reply with quote
tried to keep it all on the ffxiTimer post, then it started spreading.
posted here a sec just before you answer in the other guys topic, so my bad...anyway i thought someone would care to look at the code so maybe the SDK section was better... Embarassed
Sun Mar 19, 2006 3:31 pm View user's profile Send private message
joshua_70448



Joined: 20 Mar 2006
Posts: 62
Location: College Station, TX

Post Reply with quote
Okay, my head's starting to hurt from banging my head against this brick wall for the last couple of hours. For the life of me, I just can't get the UserControl working in VB.NET. LCDStudio outright refuses to load the plugin. Could anyone post a working example in VB.NET, or perhaps they could see what the devil's wrong with mine? I've ZIPped it and uploaded it at http://www.jfsoftware.com/images/brokenplugin.zip. Thanks!
Mon Mar 20, 2006 8:45 am View user's profile Send private message Visit poster's website AIM Address
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3336

Post Reply with quote
Your assembly somehow got corrupted and therefore refuses to load. If you have the framework sdk installed you can check with peverify if yours is ok.

Code:

C:\ffxiTimer0.2b>peverify ffxiTimer.dll

Microsoft (R) .NET Framework PE Verifier  Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Unable to OpenScopeOnMemory for IMetaDataImport:80131107
1 Errors Verifying ffxiTimer.dll

Mon Mar 20, 2006 10:12 pm View user's profile Send private message Send e-mail Visit poster's website
joshua_70448



Joined: 20 Mar 2006
Posts: 62
Location: College Station, TX

Post Reply with quote
joshua_70448 wrote:
Okay, my head's starting to hurt from banging my head against this brick wall for the last couple of hours. For the life of me, I just can't get the UserControl working in VB.NET. LCDStudio outright refuses to load the plugin. Could anyone post a working example in VB.NET, or perhaps they could see what the devil's wrong with mine? I've ZIPped it and uploaded it at http://www.jfsoftware.com/images/brokenplugin.zip. Thanks!


Never mind, I figured it out. For future reference, if anyone has this problem, try removing all Namespace...End Namespace commands from your VB.NET plugins. Those commands made mine dork out.
Tue Mar 21, 2006 3:01 am View user's profile Send private message Visit poster's website AIM Address
joshua_70448



Joined: 20 Mar 2006
Posts: 62
Location: College Station, TX

Post Reply with quote
I've posted a Visual Basic .NET translation of Ray's earlier example of a plugin using a config panel and load/save settings. You can take a look at it here: http://www.jfsoftware.com/product/75
Tue Mar 21, 2006 7:44 am View user's profile Send private message Visit poster's website AIM Address
Nachtwind



Joined: 19 Apr 2006
Posts: 16

Post Reply with quote
Well i have a problem. My checkbox cannot be checked... (since it is mostly the code of the Example):

Code:

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Security;
using System.Threading;
using System.Security.Permissions;
using System.Runtime.InteropServices;
using LcdStudio.CoreInterfaces;

namespace LCDSkypePlugIn
{
   public class Plugin : AbstractDataPlugin
   {
      public override void RegisterData(IDataService ds)
      {
         ds.RegisterVariable(Group,"LCDSkypePlugIn.HelloWorld","LCDSkypePlugIn\\Hello world");
         ds.RegisterVariable(Group,"LCDSkypePlugIn.TimeMsg","LCDSkypePlugIn\\Time");
         this.UpdateInterval = 10000; //Update every 10000ms (10 sec)
      }
     
      public override void UpdateData(IDataService ds)
      {
         ds.SetValue("LCDSkypePlugIn.HelloWorld","Hello world");
         ds.SetValue("LCDSkypePlugIn.TimeMsg",string.Format("The time is {0} ",DateTime.Now.ToShortTimeString()));
      }

   }
}


And its plugin file is as following:
Code:

<?xml version="1.0" encoding="utf-8" ?>
<Plugins>
   <Plugin ID="Skype PlugIn" Type="LCDSkypePlugIn.Plugin, LCDSkypePlugIn" Visible="Yes" >
      <Depends ID="DataService" />
      <Depends ID="DispatchService" />
   </Plugin>
</Plugins>
[/code]


*edit* just saw this thread has three pages. i will read through it now, maybe i find the solution myself. Sorry
Wed Apr 19, 2006 12:39 pm View user's profile Send private message AIM Address MSN Messenger ICQ Number
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3336

Post Reply with quote
99% chance you got the fully qualified name wrong in the .plugin file
Wed Apr 19, 2006 12:42 pm View user's profile Send private message Send e-mail Visit poster's website
Nachtwind



Joined: 19 Apr 2006
Posts: 16

Post Reply with quote
i also thought of that but cant see the mistake.
Wed Apr 19, 2006 12:46 pm View user's profile Send private message AIM Address MSN Messenger ICQ Number
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3336

Post Reply with quote
Zip up the project send it over and i'll take a look at it
Wed Apr 19, 2006 1:08 pm View user's profile Send private message Send e-mail Visit poster's website
Nachtwind



Joined: 19 Apr 2006
Posts: 16

Post Reply with quote
well, its nothing more than the code i showed up there. Could you explain the names in the xml file? For there must be the mistake somewhere..
Wed Apr 19, 2006 1:20 pm View user's profile Send private message AIM Address MSN Messenger ICQ Number
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3336

Post Reply with quote
There isn't really that much to it. It's just a fqn of the class to create and a flag if it's visible in the config panel.

Just make sure you target the dotnet framework 1.1
Wed Apr 19, 2006 1:31 pm View user's profile Send private message Send e-mail Visit poster's website
Nachtwind



Joined: 19 Apr 2006
Posts: 16

Post Reply with quote
ah, that might be the problem... let me test it...
Wed Apr 19, 2006 1:33 pm View user's profile Send private message AIM Address MSN Messenger ICQ Number
Nachtwind



Joined: 19 Apr 2006
Posts: 16

Post Reply with quote
same problem, still.
Wed Apr 19, 2006 1:36 pm View user's profile Send private message AIM Address MSN Messenger ICQ Number
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3336

Post Reply with quote
Okay send me your dll and .plugin file then, i can't keep guessing what might be wrong..
Wed Apr 19, 2006 1:42 pm View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:    
Reply to topic    LcdStudio.Com Forum Index » SDK All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 3 of 7

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.