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

Pages: (2): « First [ 1 ] 2 » Last »
Addin made in C#
Author: Message:
koo9
New Member
*

Avatar

Posts: 8
– / Male / –
Joined: Dec 2003
O.P. Addin made in C#
hi. All
has anyone have any experience in making addin with C#?
any info will be appreciated. thx


Koo9
12-07-2003 06:05 PM
Profile E-Mail PM Find Quote Report
SilenceTi
Junior Member
**

Avatar

Posts: 16
39 / Male / –
Joined: Jul 2003
RE: Addin made in C#
You can look at this site
http://www.mscorlib.com/DesktopDefault.aspx?tabid=271

It is a C# template for making plugins.
12-09-2003 07:26 PM
Profile PM Web Find Quote Report
koo9
New Member
*

Avatar

Posts: 8
– / Male / –
Joined: Dec 2003
O.P. RE: Addin made in C#
Thanks, SilenceTi. but it's not too clear on how to test the plugin, think i need to read the msdn doc.

12-10-2003 04:21 AM
Profile E-Mail PM Find Quote Report
SilenceTi
Junior Member
**

Avatar

Posts: 16
39 / Male / –
Joined: Jul 2003
RE: Addin made in C#
I played with it today when i had time, and it didn't show up in Plus in the beginning. I forgot to switch "Register for COM Interop" to true. Don't know what the switch is for that when you compile in CMD.
Also you have to register it in Windows with regasm, and put it in the register next to the VB plugins.

Look at the DataPlugin for regasm and registry key.
12-10-2003 03:21 PM
Profile PM Web Find Quote Report
koo9
New Member
*

Avatar

Posts: 8
– / Male / –
Joined: Dec 2003
O.P. RE: Addin made in C#
k. after I run the a.bat in the dateplugin, msn plus! wont' load in messenger. I have to reintall plus!.

also what do you mean by " put it in the register next to the VB plugins"?

I try to run the manager.exe to test the plugin, it give me this error:
LoadPlugIns:System.NullReferenceException: Object reference not set to an instance of an object.
   at Manager.Form1.LoadPlugIns()

what's going on?
12-10-2003 04:27 PM
Profile E-Mail PM Find Quote Report
SilenceTi
Junior Member
**

Avatar

Posts: 16
39 / Male / –
Joined: Jul 2003
RE: RE: Addin made in C#
quote:
Originally posted by koo9
k. after I run the a.bat in the dateplugin, msn plus! wont' load in messenger. I have to reintall plus!.

this aint the work of a.bat, a.bat only removes the dataplugin.dll compiles the cs files again to a dll, registers it with regasm /tlb:dataplugin.dll dataplugin.dll

don't click on a button when its pausing, cause it will unload the dll then and start all over again.

With plus don't loading in messenger could be that Plus isn't active anymore, so you have to run MsgPlus.exe again before loading  MSN

quote:
also what do you mean by " put it in the register next to the VB plugins"?


i mean that you have to get into the registry with regedit. or if you're looking at the DataPlugin run the .reg file.

quote:
I try to run the manager.exe to test the plugin, it give me this error:
LoadPlugIns:System.NullReferenceException: Object reference not set to an instance of an object.
   at Manager.Form1.LoadPlugIns()

what's going on?

This can be a few things. Is it registered in windows with regasm? Is there a key in the register (regedit)?

This post was edited on 12-10-2003 at 05:42 PM by SilenceTi.
12-10-2003 05:37 PM
Profile PM Web Find Quote Report
koo9
New Member
*

Avatar

Posts: 8
– / Male / –
Joined: Dec 2003
O.P. RE: Addin made in C#
i mean that you have to get into the registry with regedit. or if you're looking at the DataPlugin run the .reg file.
--------------------------------------------------------------------

after I merge the key into the registery, I run regedit to look for the key, but it's at a different location other than the msgPlus2. you are saying it should be next to the VB plugin, but I don't see the vb plugin registery key there.

and by the way, the a.bat is for development use, not for final deployment purpose, it keep looping after pause when u hit the enter key again.

quote:
--------------------------------------------------------------------------------

I try to run the manager.exe to test the plugin, it give me this error:
LoadPlugIns:System.NullReferenceException: Object reference not set to an instance of an object.
   at Manager.Form1.LoadPlugIns()

what's going on?

--------------------------------------------------------------------------------


This can be a few things. Is it registered in windows with regasm? Is there a key in the register (regedit)?



-> there are no documentation on how to use the manager.exe whatsoever and I assume the manager.exe will load the plugin and I will be able to test the plugin in the manager.exe.

think i will go read the msdn doc or get some documentation on how plus! works.
12-10-2003 05:51 PM
Profile E-Mail PM Find Quote Report
SilenceTi
Junior Member
**

Avatar

Posts: 16
39 / Male / –
Joined: Jul 2003
RE: Addin made in C#
thats right a.bat is for dev only.
With the manager you are still required to put it into the registry and regasm it, cause manager is looking it the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Patchou\MsgPlus2\RegisteredPlugins

about the key in the registry, i mean string (sorry my bad).
Name is how you want it to show it up in Plus! and data/value must be the namespace.name


there is also this key:
HKEY_CURRENT_USER\Software\Patchou\MsgPlus2
but that hasn't got to do anything with the plugins
12-10-2003 06:16 PM
Profile PM Web Find Quote Report
koo9
New Member
*

Avatar

Posts: 8
– / Male / –
Joined: Dec 2003
O.P. RE: Addin made in C#
By the way, silenceTi, do you know how messenger Plus! work, I know it's com dll hooking. but I need to know how exactly it works, maybe it's time for me to dig up some documentation on COM and Hooking. but if you know any good resource, it will save me a lots of time. thx


12-10-2003 11:47 PM
Profile E-Mail PM Find Quote Report
SilenceTi
Junior Member
**

Avatar

Posts: 16
39 / Male / –
Joined: Jul 2003
RE: Addin made in C#
Some linkes for hooking

http://www.codeproject.com/csharp/NetWin32Hooks.asp

sorta how Plus! is working i believe:
http://www.codeproject.com/com/cominterfacehookin...rget=msn%7Chooking
12-11-2003 09:04 AM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


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