First of all, you need to do this:
quote:
Originally from MessengerAPI Helpfile
To add the Messenger type libraries to a Visual Basic project:
In Visual Basic, create a new project or open an existing one. (This is required to display all menus.)
On the Project menu, click References.
In the References dialog box, check Messenger API Type Library in the list, and then click OK.
After this is done, you can declare a global variable like
code:
Public MessengerInstance As MessengerAPI.Messenger
Then, in Plus! plug-in Initiailize function, use:
code:
Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
Set MessengerInstance = oMessenger 'This retrieves the Messenger object from Plus!
'If any, add your custom Initiailize() codes
Initiailize = True
End Function
If you want, you can add
Set MessengerInstance = Nothing before setting it to oMessenger. But this is not obligatory.
That's what I mean in step 1