Shoutbox

Problem with messenger api - 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: Problem with messenger api (/showthread.php?tid=36877)

Problem with messenger api by KooKiz on 01-12-2005 at 11:56 AM

Hi,
I've got a very annoying problem with visual studio since a few weeks.  I can't use windows messenger's api functions anymore. For exemple, when I load the exemple template for visual basic.net (MPAdvPluginVB), I've got an error at the line :
Public Shared WithEvents oMessenger As MessengerAPI.MessengerClass

Error is : Name 'MessengerAPI' is not declared.

When I look at the references, there is an exclamation mark in front of MessengerAPI.

I tryed to reinstall msn and msgplus, without any result.

Do you know where this problem come from, and a way to fix it ? Is there a way to uninstall windows messenger so I can reinstall it ?


RE: Problem with messenger api by Ash_ on 01-12-2005 at 12:20 PM

quote:
Originally posted by KooKiz
Hi,
I've got a very annoying problem with visual studio since a few weeks.  I can't use windows messenger's api functions anymore. For exemple, when I load the exemple template for visual basic.net (MPAdvPluginVB), I've got an error at the line :
Public Shared WithEvents oMessenger As MessengerAPI.MessengerClass

Error is : Name 'MessengerAPI' is not declared.

When I look at the references, there is an exclamation mark in front of MessengerAPI.

I tryed to reinstall msn and msgplus, without any result.

Do you know where this problem come from, and a way to fix it ? Is there a way to uninstall windows messenger so I can reinstall it ?


that just sets the with.

in Visual Basic 6.0  i remember having to use something like
code:
Set oMessenger as New Messenger.MessengerAPI
on a form load or button click.

i dont know if you need to set it as a new one in .Net, maybe you could muck around with the code i stated

i hope you figure it out anyway (Y).
RE: Problem with messenger api by Plik on 01-12-2005 at 04:12 PM

In .net you need a reference to an interop dll but i think thats included with the plugin sample.
Check it out. Go to:
Project>>Show all files>> then open the references folder.
And you should have MessengerAPI or interopMessengerAPI in there,


RE: Problem with messenger api by CookieRevised on 01-12-2005 at 04:26 PM

quote:
Originally posted by KooKiz
Is there a way to uninstall windows messenger so I can reinstall it ?
yes, but that wouldn't do any good and isn't needed. Just reinstall Windows Messenger on top...
RE: Problem with messenger api by KooKiz on 01-12-2005 at 05:02 PM

I reinstalled Windows Messenger on top (I thought that would not work since it don't work with mediaplayer) and the problem is fixed ^_^
Well, seems that was easy :)
Thanks