RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
Do you mean the emails of who ever is using the plugin, or the emails of the people added?
If it is the address of the person using the plugin then the Initialize funtion returns it.
If its the emails of the people that have added you then you have to use the messenger API
RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names.
in VB6 then make a form with 1 list box and add the following code
in declarations:
quote:Public WithEvents msn As MessengerAPI.Messenger
and then in the main part of the code add this:
quote:Private Sub Form_Load()
Set msn = New MessengerAPI.Messenger
Dim msncontact As IMessengerContact
Dim msncontacts As IMessengerContacts
Set msncontacts = msn.MyContacts
For Each msncontact In msncontacts
List1.AddItem (msncontact.SigninName)
Next
End Sub
EDIT: forgot to mention you need to reference the Messenger API Type Library or this wont work
in VB6 Project > References > and tick Messenger API Type Library
This post was edited on 11-28-2004 at 02:32 PM by Eljay.
O.P. RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
ummm ok yeah i'm trying to list my current contact list to a file...and i use c++ not VB6...umm i've been reading the messenger API Help file...and i think i see what i need i'm just gonna go see if i can get it working
RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
TrevorP, just to make sure (in case you only want to export the list and aren't making this for something else): You do know that, in MSN Messenger, you can simply export your contactlist to a file?
In MSN Messenger go to the menu Contacts > Save contact List