What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » [C++ Tutorial] Events and the Plus API

[C++ Tutorial] Events and the Plus API
Author: Message:
TheBlasphemer
Senior Member
****

Avatar

Posts: 714
Reputation: 47
36 / – / –
Joined: Mar 2004
RE: [C++ Tutorial] Events and the Plus API
For more information about how Invoke works:
http://msdn.microsoft.com/library/default.asp?url...htm/chap5_61id.asp
Please keep in mind that the arguments you get passed trough params are IN REVERSE ORDER!

Another trick to make it easier is to save the typelibrary of the DMessengerEvents object,
then make a class that has DMessengerEvents as public parent,
then on creation load the typelibrary using CreateTypeLib, and use ITypeLib::GetTypeInfo to get the type info.
then pass on all Invoke and GetIDsByNames etc on to that ITypeInfo, and you can just use the simple functions of the class instead of implementing the dodgy Invoke call :)
[Image: theblasp.png]
03-01-2005 01:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[C++ Tutorial] Events and the Plus API - by RaceProUK on 03-01-2005 at 01:27 PM
RE: [C++ Tutorial] Events and the Plus API - by TheBlasphemer on 03-01-2005 at 01:35 PM
RE: [C++ Tutorial] Events and the Plus API - by Dempsey on 03-01-2005 at 07:48 PM
RE: [C++ Tutorial] Events and the Plus API - by RaceProUK on 03-02-2005 at 08:11 AM
RE: [C++ Tutorial] Events and the Plus API - by TheBlasphemer on 03-02-2005 at 11:44 AM
RE: [C++ Tutorial] Events and the Plus API - by RaceProUK on 03-02-2005 at 09:51 PM
RE: [C++ Tutorial] Events and the Plus API - by Dempsey on 03-02-2005 at 09:55 PM
RE: [C++ Tutorial] Events and the Plus API - by RaceProUK on 03-03-2005 at 09:09 AM
RE: [C++ Tutorial] Events and the Plus API - by TheBlasphemer on 03-03-2005 at 09:35 AM
RE: [C++ Tutorial] Events and the Plus API - by Dempsey on 03-03-2005 at 11:05 AM


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