Receive IRC CLIENT VB messages

Asked

Viewed 23 times

0

Hello, I’m having a hard time receiving messages from an IRC connection made in VB, Here the Code: Conexão com a irc VB The library has already been added as a reference to Ircclient.dll. This speaking that irc_ChannelMessage can not manipulate the event, I looked about but I was not successful. Erro

Here is the Project with the method "Sender As Object, and As Channelmessageeventargs"

However, when calling "Message" it does not recognize it as IRC sender As Object, e As ChannelMessageEventArgs

Dim Withevents irc As Ircclient

Public Sub Connect() irc = New Ircclient("chat.freenode.net:6665") irc. Nick = txtNick.Text irc.Joinchannel("##C++") irc. Connect() lblStatos.Text = "Connected Irc Server." End Sub

Public Sub ircChannelMessage(Sender As Object, and As Channelmessageeventargs) Handles irc.Channelmessage txtMensagens.Appendtext(Message & vbNewLine) txtMensagens.Scrolltocaret() lblMensagens.Text = "Reading Messages." End Sub

https://github.com/MrDeppy/deppy

1 answer

0

The parameters of the method irc_ChannelMessage are not correct.

From the error message, it seems that the correct one would be to put the following signature:

Private Sub irc_ChannelMessage(sender As Object, e As ChannelMessageEventArgs) Handles irc.ChannelMessage
End Sub
  • The error message is gone, but I can’t get answers from the server. I’ll send the project.

  • Here is the project https://github.com/MrDeppy/deppy I did the correction, but I can’t call "Message" for Textbox. I need to receive the response from the server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.