kythyria / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Implementation Issues in VB.Net using MSNP Sharp #209

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Nothing seems to work well in VB.NET

I am trying to implement simple VB.NET application like enabling signing in and 
sending messages to other clients. However, i got signin done. But still i am 
facing problem with the user statuses. User are logged in and are online. But 
the protocol returns as offline always. 

Secondly, even sending messages are not working properly. 

Do you have any example VB.NET in MSNP Sharp

Original issue reported on code.google.com by solosoft...@gmail.com on 5 Aug 2010 at 7:06

GoogleCodeExporter commented 9 years ago
I have attached a sample vb code. Can you please see where i am doing some 
thing wrong. You don't have any documentation online, from where i can look 
into some samples VB.Net codes. 

Please help me. 

Original comment by solosoft...@gmail.com on 5 Aug 2010 at 7:33

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 6 Aug 2010 at 8:26

GoogleCodeExporter commented 9 years ago
Ok, I have the free time now so I'll see what I can do. I'll report soon enough 
:)

Original comment by electk...@gmail.com on 6 Aug 2010 at 11:12

GoogleCodeExporter commented 9 years ago
Thanks for your help

Original comment by solosoft...@gmail.com on 6 Aug 2010 at 11:58

GoogleCodeExporter commented 9 years ago
Ok, what I can see from your VB.NET code your code seems fine.

The problem that users are returning offline statuses when they are online does 
seem like a problem within the form here. I can only say when the owner is 
logged into MSN, you seem to invoke PopulateContacts(), which is fine. The only 
problem with that is there will be still more information sent from MSN 
Protocol about those contact's status (if online, and so forth), which will 
then be updated through MSNPSharp assembly. What you need to do is call 
PopulateContacts() again when MSNPSharp is informed about the contact's status 
changes.

To do this, you must also use the events Nameserver.ContactOnline and 
Nameserver.ContactOffline, so add these events when the Main form loads up. 
Invoke PopulateContacts(), and there you should be able to retrieve the latest 
information about the contact's status (you may retrieve a constant amount of 
updating depending how much contacts you have, so you may consider some other 
system if you want). Hope this explains and helps you.

Secondly for sending messages, are you testing this only on one contact or on 
multiple contacts? Thanks.

Original comment by electk...@gmail.com on 7 Aug 2010 at 12:29

GoogleCodeExporter commented 9 years ago

Original comment by electk...@gmail.com on 11 Aug 2010 at 12:59