What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Programming with C#

1 votes - 5 average   Programming with C#
Author: Message:
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
RE: Programming with C#
I'm also trying to do it. Translate the other plugins to C# wasn't a problem. I've got this:

code:
using System;

namespace Test
{
    public class TestPlugin
    {
        public TestPlugin()
        {

        }

        public bool Initialize(long nVersion, string sUserEmail, object oMessenger)
        {
            return true;
        }

        public bool GetPublishInfo(ref string sPluginNameString, ref long nCommandCount, ref long nTagCount)
        {
            sPluginNameString = "Test Plugin";
            nCommandCount = 1;
            nTagCount = 0;
            return true;
        }

        public void GetPublishCommandInfo(long nCommandIdx, ref string sName, ref string sValue, ref string sHelp)
        {
            if(nCommandIdx == 1)
            {
                sName = "Test option";
                sValue = "xtest";
                sHelp = "Some help text";
            }
        }

        public void GetPublishTagInfo(long nTagIdx, ref string sName, ref string sValue)
        {

        }

        public bool ParseCommand(string sCommand, string sCommandArg, object oConversationWnd, ref string sResult)
        {
            if(sCommand.ToLower() == "/xtest")
            {
                sResult = "It works! You said: " + sCommandArg;
                return true;
            }

            return false;
        }
    }
}

But the problem is installing... I can't install it correctly...

I know how to do it but it doesn't work... I first unload the messenger plugins, then I copy the dll to the correct map, after that i write the registry key and then I use RegAsm to register my key. But i keep having errors about having 2 instances of mscoree.dll (or something like that) loaded... And msn crashes. One time it worked when I closed msn first, but that doesn't work all the time. I think the problem is, it takes too long to copy the dll and regasm it, so msgplus has already loaded it... But i'm not quite sure. Anybody has got an idea?
06-02-2005 12:09 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Programming with C# - by white-knight on 06-02-2005 at 02:16 AM
RE: Programming with C# - by Patchou on 06-02-2005 at 03:27 AM
RE: Programming with C# - by J-Thread on 06-02-2005 at 12:09 PM
RE: Programming with C# - by RaceProUK on 06-02-2005 at 01:48 PM
RE: Programming with C# - by J-Thread on 06-02-2005 at 04:32 PM
RE: Programming with C# - by (CyBeRDuDe) on 06-02-2005 at 07:55 PM
RE: Programming with C# - by RaceProUK on 06-02-2005 at 09:31 PM
RE: Programming with C# - by J-Thread on 06-02-2005 at 10:40 PM
RE: Programming with C# - by RaceProUK on 06-03-2005 at 03:51 PM
RE: Programming with C# - by J-Thread on 06-04-2005 at 07:07 PM
RE: Programming with C# - by RaceProUK on 06-04-2005 at 07:40 PM
RE: Programming with C# - by J-Thread on 06-05-2005 at 08:14 AM
RE: Programming with C# - by RaceProUK on 06-05-2005 at 01:06 PM
RE: Programming with C# - by J-Thread on 06-05-2005 at 02:18 PM
RE: Programming with C# - by J-Thread on 06-07-2005 at 09:23 AM
RE: Programming with C# - by J-Thread on 06-07-2005 at 10:59 AM
RE: Programming with C# - by RaceProUK on 06-07-2005 at 10:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On