| Author |
Message |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3336
|
|
|
|
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 |
|
 |
pseudo
Joined: 13 Mar 2006 Posts: 7 Location: Porto - Portugal |
|
|
|
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... 
|
|
| Sun Mar 19, 2006 3:31 pm |
|
 |
joshua_70448
Joined: 20 Mar 2006 Posts: 62 Location: College Station, TX |
|
|
|
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 |
|
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3336
|
|
|
|
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.
 |
 |
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 |
|
 |
joshua_70448
Joined: 20 Mar 2006 Posts: 62 Location: College Station, TX |
|
|
|
 |
 |
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 |
|
 |
joshua_70448
Joined: 20 Mar 2006 Posts: 62 Location: College Station, TX |
|
|
|
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 |
|
 |
Nachtwind
Joined: 19 Apr 2006 Posts: 16
|
|
|
|
Well i have a problem. My checkbox cannot be checked... (since it is mostly the code of the Example):
 |
 |
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:
 |
 |
<?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 |
 |
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3336
|
|
|
|
99% chance you got the fully qualified name wrong in the .plugin file
|
|
| Wed Apr 19, 2006 12:42 pm |
|
 |
Nachtwind
Joined: 19 Apr 2006 Posts: 16
|
|
|
|
i also thought of that but cant see the mistake.
|
|
| Wed Apr 19, 2006 12:46 pm |
 |
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3336
|
|
|
|
Zip up the project send it over and i'll take a look at it
|
|
| Wed Apr 19, 2006 1:08 pm |
|
 |
Nachtwind
Joined: 19 Apr 2006 Posts: 16
|
|
|
|
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 |
 |
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3336
|
|
|
|
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 |
|
 |
Nachtwind
Joined: 19 Apr 2006 Posts: 16
|
|
|
|
ah, that might be the problem... let me test it...
|
|
| Wed Apr 19, 2006 1:33 pm |
 |
 |
Nachtwind
Joined: 19 Apr 2006 Posts: 16
|
|
|
|
same problem, still.
|
|
| Wed Apr 19, 2006 1:36 pm |
 |
 |
Ray
Site Admin

Joined: 23 Apr 2005 Posts: 3336
|
|
|
|
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 |
|
 |
|