What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » IDispatch* ? (C++)

IDispatch* ? (C++)
Author: Message:
piderman
New Member
*

Avatar

Posts: 1
41 / Male / –
Joined: Jul 2004
O.P. IDispatch* ? (C++)
I would like to make some plugin for Plus! using the Messenger API, but I can't figure out how to do this. It seems I should use the iMessengerObj object in the Initialize function, but I don't know how to access/Invoke it :S, and the API documentation gives no clue.
Can someone tell me how I can activate and use it? (preferably with some code I can copy&paste :D)
Better yet, does someone have an open-source plugin using this (in C++) that I can examine?
07-06-2004 07:42 AM
Profile PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: IDispatch* ? (C++)
Err...to be precise, I think TB's code should be like this...;)

(This should be a global variable so that other functions such as ParseCommand can use it)
code:
IMessenger* pResult=NULL;


And in Initialize...
code:
iMessengerObj->QueryInterface(IID_IMessenger,(void**)&pResult);


When you finish using the code just use pResult->Release(). Indeed, as Patchou says in the .h file, don't use Release on iMessengerObj.

You may need same skills if you need to retrieve a conversation window in ParseCommand/Tag/ReceiveNotify ;)


Of course, remember to include Messenger API (not Plus! Plugin API) headers before using these codes. Details can be found in Messenger API documentation. :)
07-06-2004 10:53 AM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: IDispatch* ? (C++)
The dirty method works just as well, having used it myself.
If you want more help with the Messenger API piderman, feel free to PM me. The API isn't actually that hard to understand, just a pain to use sometimes.
[Image: spartaafk.png]
07-06-2004 02:44 PM
Profile PM Web Find Quote Report
« 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