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:
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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
IDispatch* ? (C++) - by piderman on 07-06-2004 at 07:42 AM
RE: IDispatch* ? (C++) - by Mnjul on 07-06-2004 at 10:53 AM
RE: IDispatch* ? (C++) - by RaceProUK on 07-06-2004 at 02:44 PM


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