Shoutbox

Dev-C++ Problem - 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: Dev-C++ Problem (/showthread.php?tid=50488)

Dev-C++ Problem by IcyT on 09-14-2005 at 01:44 PM

Is it possible to develop a plugin with dev-c++ that only shows a messagebox if I change my own status?
I don't know how to use the IMessenger3 interface. If I declare a variable as IMessenger3, I already get errors. Which files do I have to include?
If someone has already implemented a similiar plugin, I think it wouldn't make much work to solve my problem and send me the plugin.
Thanks!


RE: Dev-C++ Problem by RaceProUK on 09-14-2005 at 03:49 PM

You need to ensure you include msgrua.h and msgruaid.h in any CPP file you use the Messenger API in.

Edit: And link to msgrguid.lib as well ;)


RE: Dev-C++ Problem by Dempsey on 09-14-2005 at 03:53 PM

look at the MPPlugins.zip plugin sample, as that shows using the Messenger API from within a C++ plugin, and you just have to change it to use the event you want (OnMyFirendlyNameChange IIRC) and bleh


RE: Dev-C++ Problem by Eljay on 09-14-2005 at 03:55 PM

quote:
Originally posted by Dempsey
OnMyFirendlyNameChange IIRC

its broken in msn 7.5 (i think)

RE: Dev-C++ Problem by RaceProUK on 09-14-2005 at 04:24 PM

He wants it to trigger OnMyStatusChange (DISPID_MUAE_ONMYSTATECHANGE).

quote:
Originally posted by Lee Jeffery
quote:
Originally posted by Dempsey
OnMyFirendlyNameChange IIRC
its broken in msn 7.5 (i think)
Yes it is. I know this because I depend on it.
RE: RE: Dev-C++ Problem by IcyT on 09-14-2005 at 04:59 PM

quote:
Originally posted by raceprouk
You need to ensure you include msgrua.h and msgruaid.h in any CPP file you use the Messenger API in.

Edit: And link to msgrguid.lib as well ;)
That's just what I already did, but I got linking errors.


quote:
Originally posted by Dempsey
look at the MPPlugins.zip plugin sample, as that shows using the Messenger API from within a C++ plugin, and you just have to change it to use the event you want (OnMyFirendlyNameChange IIRC) and bleh
The plugin samples are for Visual C++. Dev-C++ got no comdef.h and I think that's what you need to make such a plugin.


quote:
Originally posted by Lee Jeffery
its broken in msn 7.5 (i think)
That doesn't matter, the plugin is for the windows messenger :P
RE: Dev-C++ Problem by IcyT on 09-16-2005 at 08:23 AM

Hm.. no ideas?