Free Aim Client C# Component conversions to VB.Net

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Have anyone fooled around with the Fluent.toc dll?
http://www.fluentconsulting.com/components/Fluent.Toc/

This is the code they used to post in C#
Send Message Example
TocClient tc = new TocClient();
tc.SignIn("myscreenname","password");
tc.Send("mybuddy","Hello!");
tc.SignOut();

And this is my conversion

Dim tc As Fluent.Toc.TocClient
tc.SignOn("myUser", "myPass")
tc.Send("MyFriendsAIM", "Hello! From VB.net!")
tc.SignOff
and this doesn't seem to work. And for the life of me I cannot seem
to capture the error message from the events?

Any one else have any luck?
 
1) You need to say: Dim tc As New Fluent.Toc.TocClient - i.e. you need to
actually create an instance of the object instead of just declaring a
variable
2) you call SignOut in your first example, but SignOff in your conversion
3) Lastly, you should always post on the newsgroup *exactly* the error
message that you get, or the behavior that occurrs. In this case, I gather
you received a NullReferenceException, but in general, you should always
include that if you want a helpful answer.
 
Back
Top