Shoutbox

Addin made in C# - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Addin made in C# (/showthread.php?tid=19088)

Addin made in C# by koo9 on 12-07-2003 at 06:05 PM

hi. All
has anyone have any experience in making addin with C#?
any info will be appreciated. thx


Koo9


RE: Addin made in C# by SilenceTi on 12-09-2003 at 07:26 PM

You can look at this site
http://www.mscorlib.com/DesktopDefault.aspx?tabid=271

It is a C# template for making plugins.


RE: Addin made in C# by koo9 on 12-10-2003 at 04:21 AM

Thanks, SilenceTi. but it's not too clear on how to test the plugin, think i need to read the msdn doc.


RE: Addin made in C# by SilenceTi on 12-10-2003 at 03:21 PM

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.


RE: Addin made in C# by koo9 on 12-10-2003 at 04:27 PM

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?


RE: RE: Addin made in C# by SilenceTi on 12-10-2003 at 05:37 PM

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)?

RE: Addin made in C# by koo9 on 12-10-2003 at 05:51 PM

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.


RE: Addin made in C# by SilenceTi on 12-10-2003 at 06:16 PM

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


RE: Addin made in C# by koo9 on 12-10-2003 at 11:47 PM

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



RE: Addin made in C# by SilenceTi on 12-11-2003 at 09:04 AM

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


RE: Addin made in C# by koo9 on 12-11-2003 at 05:16 PM

again, thx for ur help. SilenceTi


RE: Addin made in C# by qwerasdf on 06-05-2005 at 08:06 AM

http://www.mscorlib.com/DesktopDefault.aspx?tabid=271  Doesnt have a c# template anymore, duz anyone have a copy?