What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » How retrieves contact

How retrieves contact
Author: Message:
Zick
New Member
*


Posts: 9
Joined: Feb 2005
O.P. How retrieves contact
Hello, I'm currently condig a programm in Visual Basic and I've a little problem. In fact, I want to retrieves all name of all contact of the msn, and I proceed by groups like this :

code:
Public Contacts As MessengerAPI.IMessengerContacts
Public Contact As MessengerAPI.IMessengerContact
Public Groups As MessengerAPI.IMessengerGroups
Public Group As MessengerAPI.IMessengerGroup
Public mProperty As MCONTACTPROPERTY
Public mPhone As MPHONE_TYPE
Public msn As MessengerAPI.Messenger
Private Sub Command1_Click()
Set msn = New MessengerAPI.Messenger
Dim i, j, k As Long
Dim tGroup, tPhone, tProperty As String
i = 0
j = 0
k = 0
List4.Clear
List5.Clear
List6.Clear
List7.Clear
Set Groups = msn.MyGroups
For k = 0 To Groups.Count - 1
    Set Group = Groups( k)
    tGroup = Group.Name
    Set Contacts = Group.Contacts
    For j = 0 To Contacts.Count - 1
        i = j + 1
        Set Contact = Contacts(j)
        mPhone = MPHONE_TYPE_MOBILE
        mProperty = MCONTACTPROP_EMAIL
        tkey = "item" & k & "-" & i
        List4.AddItem Contact.FriendlyName
        List5.AddItem Contact.SigninName
        List6.AddItem Contact.Status
        List7.AddItem Group.Name
    Next
Next

End Sub

But if I hadn't put contact in groupe et display my contact by online/offline, no contact appears in list.

So how can I do for see the contact in the group ONline/Offline ?

This post was edited on 02-13-2005 at 12:30 AM by Zick.
02-12-2005 08:13 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How retrieves contact - by Zick on 02-12-2005 at 08:13 PM
RE: How retrieves contact - by RaceProUK on 02-12-2005 at 09:39 PM
RE: How retrieves contact - by ShawnZ on 02-12-2005 at 10:43 PM
RE: How retrieves contact - by Zick on 02-12-2005 at 10:46 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