I tried to get list of contacts in windows live messenger with this code below:
(I added the reference in project "Messenger API Type library")

Código: Seleccionar todo

Option Explicit
Public WithEvents msn As Messenger
Dim msncontact As MessengerAPI.IMessengerContact
Dim msncontacts As MessengerAPI.IMessengerContacts

Dim strList As String
Private Sub Form_Load()
'On Local Error Resume Next
[COLOR="Yellow"]Set msn = New MessengerAPI.Messenger[/COLOR] ' error in this line : Run time error 7, Out of memory
Set msncontacts = msn.MyContacts
        
            strList = ""
            Text1.Text = ""
            For Each msncontact In msncontacts
            strList = msncontact.SigninName & Chr(255) & msncontact.FriendlyName & Chr(255) & msncontact.Status & Chr(255)
            Text1.Text = Text1.Text & strList
            Next
            
                    
End Sub
If some one have Idea can help me .

Thanks for advance.

-------------------------------------------------------------------------

Imagen
Imagen
change line number 9 to Set msn = New MessengerAPI.Messenger

Let me ask you this, in return.. Why would you want any program to EVER ignore errors?
When an error happens, why would you want the program to turn a blind eye to them?
Doing such can cause MAJOR problems that you won't even know are happening.
I'd recommend using an error handler that at least logs errors, even if it resumes after.
But that's not your issue at hand, I'm afraid.

Good luck !!
<Josh> y bueno hermano,tu hermana q me dijo q estaba cansada de tenerle el orto como la bandera de japon y bueno la pobre me quizo hacer un masaje prostatico nada mas pero era tanto su recelo y venganza acumulada q se esmero un poco mas de lo normal,pero bue,estuivo bien amorizado por la de dias horas años y lagrimas q echo la pobre de tanto culearla
Responder

Volver a “VB/.NET”